mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
fix build
This commit is contained in:
parent
6f93c1a7bd
commit
ad85548ec3
1 changed files with 5 additions and 1 deletions
|
|
@ -72,7 +72,11 @@ func (ae *AccessEvents) Keys() [][]byte {
|
|||
// TODO: consider if parallelizing this is worth it, probably depending on len(ae.chunks).
|
||||
keys := make([][]byte, 0, len(ae.chunks))
|
||||
for chunk := range ae.chunks {
|
||||
key := bintrie.GetBinaryTreeKey(chunk.addr, &chunk.treeIndex, chunk.leafKey)
|
||||
var offset [32]byte
|
||||
treeIndexBytes := chunk.treeIndex.Bytes32()
|
||||
copy(offset[:31], treeIndexBytes[1:])
|
||||
offset[31] = chunk.leafKey
|
||||
key := bintrie.GetBinaryTreeKey(chunk.addr, offset[:])
|
||||
keys = append(keys, key)
|
||||
}
|
||||
return keys
|
||||
|
|
|
|||
Loading…
Reference in a new issue