diff --git a/cmd/geth/snapshot.go b/cmd/geth/snapshot.go index 61b38dedd..4409d2197 100644 --- a/cmd/geth/snapshot.go +++ b/cmd/geth/snapshot.go @@ -409,7 +409,7 @@ func pruneBlock(ctx *cli.Context) error { } if _, err := os.Stat(newAncientPath); err == nil { - // No file lock found for old ancientDB but new ancientDB exsisted, indicating the geth was interrupted + // No file lock found for old ancientDB but new ancientDB existed, indicating the geth was interrupted // after old ancientDB removal, this happened after backup successfully, so just rename the new ancientDB if err := blockpruner.AncientDbReplacer(); err != nil { log.Error("Failed to rename new ancient directory") diff --git a/core/state/pruner/pruner.go b/core/state/pruner/pruner.go index 834cbcd16..e65c1b892 100644 --- a/core/state/pruner/pruner.go +++ b/core/state/pruner/pruner.go @@ -402,7 +402,7 @@ func (p *BlockPruner) backUpOldDb(name string, cache, handles int, namespace str var oldOffSet uint64 if interrupt { - // The interrupt scecario within this function is specific for old and new ancientDB exsisted concurrently, + // The interrupt scecario within this function is specific for old and new ancientDB existed concurrently, // should use last version of offset for oldAncientDB, because current offset is // actually of the new ancientDB_Backup, but what we want is the offset of ancientDB being backup. oldOffSet = rawdb.ReadOffSetOfLastAncientFreezer(chainDb) diff --git a/eth/ethconfig/config.go b/eth/ethconfig/config.go index 7878daa3d..55c21dfe2 100644 --- a/eth/ethconfig/config.go +++ b/eth/ethconfig/config.go @@ -110,7 +110,7 @@ type Config struct { PipeCommit bool RangeLimit bool - // Deprecated, use 'TransactionHistory' instead. + // Deprecated: use 'TransactionHistory' instead. TxLookupLimit uint64 `toml:",omitempty"` // The maximum number of blocks from head whose tx indices are reserved. TransactionHistory uint64 `toml:",omitempty"` // The maximum number of blocks from head whose tx indices are reserved. StateHistory uint64 `toml:",omitempty"` // The maximum number of blocks from head whose state histories are reserved. diff --git a/trie/hbss2pbss.go b/trie/hbss2pbss.go index be7efa3a9..35402b5c7 100644 --- a/trie/hbss2pbss.go +++ b/trie/hbss2pbss.go @@ -181,7 +181,7 @@ func (h2p *Hbss2Pbss) ConcurrentTraversal(theTrie *Trie, theNode node, path []by } } -// copy from trie/Commiter (*committer).commit +// copy from trie/Committer (*committer).commit func (h2p *Hbss2Pbss) commitChildren(path []byte, n *fullNode) [17]node { var children [17]node for i := 0; i < 16; i++ {