From da369b8044dc2c80ebfd18cade7a62ad4c425de1 Mon Sep 17 00:00:00 2001 From: cuiweiyuan Date: Tue, 24 Dec 2024 20:28:56 +0800 Subject: [PATCH] chore: fix function name in comment Signed-off-by: cuiweiyuan --- rpc/handler.go | 2 +- sync/statesync/state_syncer.go | 2 +- triedb/pathdb/database_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rpc/handler.go b/rpc/handler.go index adffe5cbad..a15f6b20be 100644 --- a/rpc/handler.go +++ b/rpc/handler.go @@ -356,7 +356,7 @@ func (h *handler) addRequestOp(op *requestOp) { } } -// removeRequestOps stops waiting for the given request IDs. +// removeRequestOp stops waiting for the given request IDs. func (h *handler) removeRequestOp(op *requestOp) { for _, id := range op.ids { delete(h.respWait, string(id)) diff --git a/sync/statesync/state_syncer.go b/sync/statesync/state_syncer.go index 305b981b8f..ec8b138863 100644 --- a/sync/statesync/state_syncer.go +++ b/sync/statesync/state_syncer.go @@ -132,7 +132,7 @@ func (t *stateSync) onStorageTrieFinished(root common.Hash) error { return nil } -// onMainTrieFinishes is called after the main trie finishes syncing. +// onMainTrieFinished is called after the main trie finishes syncing. func (t *stateSync) onMainTrieFinished() error { t.codeSyncer.notifyAccountTrieCompleted() diff --git a/triedb/pathdb/database_test.go b/triedb/pathdb/database_test.go index ed7d237480..d7d15afea0 100644 --- a/triedb/pathdb/database_test.go +++ b/triedb/pathdb/database_test.go @@ -315,7 +315,7 @@ func (t *tester) generate(parent common.Hash) (common.Hash, *trienode.MergedNode return root, ctx.nodes, triestate.New(ctx.accountOrigin, ctx.storageOrigin, nil) } -// lastRoot returns the latest root hash, or empty if nothing is cached. +// lastHash returns the latest root hash, or empty if nothing is cached. func (t *tester) lastHash() common.Hash { if len(t.roots) == 0 { return common.Hash{}