core, beacon, ethdb: fix typos (#29748)
* core, beacon, ethdb: fix typos * revert file that can't be changed
This commit is contained in:
parent
603fd898d4
commit
47af69c2bc
@ -91,7 +91,7 @@ func TestValidatedHead(t *testing.T) {
|
|||||||
ts.ServerEvent(EvNewOptimisticUpdate, testServer3, testOptUpdate4)
|
ts.ServerEvent(EvNewOptimisticUpdate, testServer3, testOptUpdate4)
|
||||||
// finality should be requested from both servers
|
// finality should be requested from both servers
|
||||||
ts.Run(4, testServer1, ReqFinality{}, testServer3, ReqFinality{})
|
ts.Run(4, testServer1, ReqFinality{}, testServer3, ReqFinality{})
|
||||||
// future period annonced heads should be queued
|
// future period announced heads should be queued
|
||||||
ht.ExpValidated(t, 4, nil)
|
ht.ExpValidated(t, 4, nil)
|
||||||
|
|
||||||
chain.SetNextSyncPeriod(2)
|
chain.SetNextSyncPeriod(2)
|
||||||
|
@ -146,7 +146,7 @@ func (s *stateObject) GetState(key common.Hash) common.Hash {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// getState retrieves a value associated with the given storage key, along with
|
// getState retrieves a value associated with the given storage key, along with
|
||||||
// it's original value.
|
// its original value.
|
||||||
func (s *stateObject) getState(key common.Hash) (common.Hash, common.Hash) {
|
func (s *stateObject) getState(key common.Hash) (common.Hash, common.Hash) {
|
||||||
origin := s.GetCommittedState(key)
|
origin := s.GetCommittedState(key)
|
||||||
value, dirty := s.dirtyStorage[key]
|
value, dirty := s.dirtyStorage[key]
|
||||||
|
@ -643,7 +643,7 @@ func BenchmarkOpKeccak256(bench *testing.B) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestCreate2Addreses(t *testing.T) {
|
func TestCreate2Addresses(t *testing.T) {
|
||||||
type testcase struct {
|
type testcase struct {
|
||||||
origin string
|
origin string
|
||||||
salt string
|
salt string
|
||||||
|
@ -381,7 +381,7 @@ func TestDatabaseSuite(t *testing.T, New func() ethdb.KeyValueStore) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
t.Run("OperatonsAfterClose", func(t *testing.T) {
|
t.Run("OperationsAfterClose", func(t *testing.T) {
|
||||||
db := New()
|
db := New()
|
||||||
db.Put([]byte("key"), []byte("value"))
|
db.Put([]byte("key"), []byte("value"))
|
||||||
db.Close()
|
db.Close()
|
||||||
|
Loading…
Reference in New Issue
Block a user