snap: fix typo

This commit is contained in:
Haoran Wang 2024-04-21 13:55:44 +08:00
parent a0e4790ca5
commit b92dede7cc

View file

@ -132,7 +132,7 @@ func (t *pathTrie) onTrieNode(path []byte, hash common.Hash, blob []byte) {
// //
// The extension node is detected if its path is the prefix of last committed // The extension node is detected if its path is the prefix of last committed
// one and path gap is larger than one. If the path gap is only one byte, // one and path gap is larger than one. If the path gap is only one byte,
// the current node could either be a full node, or a extension with single // the current node could either be a full node, or an extension with single
// byte key. In either case, no gaps will be left in the path. // byte key. In either case, no gaps will be left in the path.
if t.last != nil && bytes.HasPrefix(t.last, path) && len(t.last)-len(path) > 1 { if t.last != nil && bytes.HasPrefix(t.last, path) && len(t.last)-len(path) > 1 {
for i := len(path) + 1; i < len(t.last); i++ { for i := len(path) + 1; i < len(t.last); i++ {