core, beacon, ethdb: fix typos (#29748)

* core, beacon, ethdb: fix typos

* revert file that can't be changed
pull/29757/head
Hteev Oli 7 months ago committed by GitHub
parent 603fd898d4
commit 47af69c2bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      beacon/light/sync/head_sync_test.go
  2. 2
      core/state/state_object.go
  3. 2
      core/vm/instructions_test.go
  4. 2
      ethdb/dbtest/testsuite.go

@ -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…
Cancel
Save