mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
trie: the hex length is even, (even+1)/2 == even/2
This commit is contained in:
parent
0810034311
commit
c3c5f335e6
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ func hexToKeybytes(hex []byte) []byte {
|
|||
if len(hex)&1 != 0 {
|
||||
panic("can't convert hex key of odd length")
|
||||
}
|
||||
key := make([]byte, (len(hex)+1)/2)
|
||||
key := make([]byte, len(hex)/2)
|
||||
decodeNibbles(hex, key)
|
||||
return key
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue