mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 11:20:45 +00:00
trie/bintrie: fix tree key
This commit is contained in:
parent
344d01e2be
commit
5518af93d1
1 changed files with 1 additions and 0 deletions
|
|
@ -51,6 +51,7 @@ func GetBinaryTreeKey(addr common.Address, key []byte) []byte {
|
|||
hasher.Write(zeroHash[:12])
|
||||
hasher.Write(addr[:])
|
||||
hasher.Write(key[:31])
|
||||
hasher.Write([]byte{0})
|
||||
k := hasher.Sum(nil)
|
||||
k[31] = key[31]
|
||||
return k
|
||||
|
|
|
|||
Loading…
Reference in a new issue