mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
trie: fix lint
This commit is contained in:
parent
8b99e862ff
commit
14c08d19e3
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue