@@ -335,9 +335,9 @@ findFork:
335
335
// unset removes all internal node references either the left most or right most.
336
336
// It can meet these scenarios:
337
337
//
338
- // - The given path is existent in the trie, unset the associated nodes with the
339
- // specific direction
340
- // - The given path is non-existent in the trie
338
+ // - The given path is existent in the trie, unset the associated nodes with the
339
+ // specific direction
340
+ // - The given path is non-existent in the trie
341
341
// - the fork point is a fullnode, the corresponding child pointed by path
342
342
// is nil, return
343
343
// - the fork point is a shortnode, the shortnode is included in the range,
@@ -454,15 +454,15 @@ func hasRightElement(node node, key []byte) bool {
454
454
// Expect the normal case, this function can also be used to verify the following
455
455
// range proofs:
456
456
//
457
- // - All elements proof. In this case the proof can be nil, but the range should
458
- // be all the leaves in the trie.
457
+ // - All elements proof. In this case the proof can be nil, but the range should
458
+ // be all the leaves in the trie.
459
459
//
460
- // - One element proof. In this case no matter the edge proof is a non-existent
461
- // proof or not, we can always verify the correctness of the proof.
460
+ // - One element proof. In this case no matter the edge proof is a non-existent
461
+ // proof or not, we can always verify the correctness of the proof.
462
462
//
463
- // - Zero element proof. In this case a single non-existent proof is enough to prove.
464
- // Besides, if there are still some other leaves available on the right side, then
465
- // an error will be returned.
463
+ // - Zero element proof. In this case a single non-existent proof is enough to prove.
464
+ // Besides, if there are still some other leaves available on the right side, then
465
+ // an error will be returned.
466
466
//
467
467
// Except returning the error to indicate the proof is valid or not, the function will
468
468
// also return a flag to indicate whether there exists more accounts/slots in the trie.
0 commit comments