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

* core, beacon, ethdb: fix typos

* revert file that can't be changed
This commit is contained in:
Hteev Oli 2024-05-11 01:48:14 +08:00 committed by GitHub
parent 603fd898d4
commit 47af69c2bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -91,7 +91,7 @@ func TestValidatedHead(t *testing.T) {
ts.ServerEvent(EvNewOptimisticUpdate, testServer3, testOptUpdate4)
// finality should be requested from both servers
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)
chain.SetNextSyncPeriod(2)

View File

@ -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
// it's original value.
// its original value.
func (s *stateObject) getState(key common.Hash) (common.Hash, common.Hash) {
origin := s.GetCommittedState(key)
value, dirty := s.dirtyStorage[key]

View File

@ -643,7 +643,7 @@ func BenchmarkOpKeccak256(bench *testing.B) {
}
}
func TestCreate2Addreses(t *testing.T) {
func TestCreate2Addresses(t *testing.T) {
type testcase struct {
origin string
salt string

View File

@ -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.Put([]byte("key"), []byte("value"))
db.Close()