Skip to content

Commit

Permalink
triedb/pathdb/database_test.go: lastRoot -> lastHash
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Jan 24, 2025
1 parent e2b0abb commit 98204c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion triedb/pathdb/database_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,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{}
Expand Down

0 comments on commit 98204c8

Please sign in to comment.