mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 12:46:44 +00:00
Modify node encoding logic for compression
This commit is contained in:
parent
0d0c8778a1
commit
ce7d7efa2c
1 changed files with 2 additions and 1 deletions
|
|
@ -651,7 +651,8 @@ func (s *nodeSetWithOrigin) encodeNodeHistory(root common.Hash) (map[common.Hash
|
||||||
encodeFull = true // fallback to the full node encoding
|
encodeFull = true // fallback to the full node encoding
|
||||||
} else {
|
} else {
|
||||||
// Encode the node difference as the history element
|
// Encode the node difference as the history element
|
||||||
blob := encodeNodeCompressed(nElem == 2, diffs, indices)
|
addExt := nElem != 2 // fullNode
|
||||||
|
blob := encodeNodeCompressed(addExt, diffs, indices)
|
||||||
nodes[owner][path] = blob
|
nodes[owner][path] = blob
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue