mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-11 09:21:37 +00:00
review feedback: simplify comment
This commit is contained in:
parent
062dfa16c9
commit
92a9aaf542
1 changed files with 1 additions and 4 deletions
|
|
@ -251,10 +251,7 @@ func (s *nodeStore) deserializeSubtree(hn common.Hash, remainingDepth int, posit
|
||||||
rightPos := position*2 + 1
|
rightPos := position*2 + 1
|
||||||
|
|
||||||
// note that the parent might not need root computations, but the children
|
// note that the parent might not need root computations, but the children
|
||||||
// do, because their hash isn't saved. This will incur more hash computations
|
// do, because their hash isn't saved. Hence `mustRecompute` is set to `true`.
|
||||||
// than if it's a single node, but as long as it's sha256 or blake3, that isn't
|
|
||||||
// a problem. If the parent isn't modified, it won't be recomputed and neither
|
|
||||||
// will the children.
|
|
||||||
left, err := s.deserializeSubtree(common.Hash{}, remainingDepth-1, leftPos, nodeDepth+1, bitmap, hashData, hashIdx, true, dirty)
|
left, err := s.deserializeSubtree(common.Hash{}, remainingDepth-1, leftPos, nodeDepth+1, bitmap, hashData, hashIdx, true, dirty)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return emptyRef, err
|
return emptyRef, err
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue