trie: fix lint

This commit is contained in:
rjl493456442 2020-04-22 17:26:41 +08:00
parent 8b99e862ff
commit 14c08d19e3
2 changed files with 3 additions and 3 deletions

View file

@ -197,7 +197,7 @@ func proofToPath(rootHash common.Hash, root node, key []byte, proofDb ethdb.KeyV
}
}
// unsetInternal removes all internal node references(hashnode, embeded node).
// unsetInternal removes all internal node references(hashnode, embedded node).
// It should be called after a trie is constructed with two edge proofs.
//
// It's the key step for range proof. All visited nodes should be marked dirty

View file

@ -196,8 +196,8 @@ func TestBadRangeProof(t *testing.T) {
}
}
// TestGappedRangeProof focuses on the small trie with embeded nodes.
// If the gapped node is embeded in the trie, it should be detected too.
// TestGappedRangeProof focuses on the small trie with embedded nodes.
// If the gapped node is embedded in the trie, it should be detected too.
func TestGappedRangeProof(t *testing.T) {
trie := new(Trie)
var entries []*kv // Sorted entries