trie: fix error in node decoding (#19111)
This commit is contained in:
committed by
Péter Szilágyi
parent
fe5258b41e
commit
a458153098
@ -52,6 +52,9 @@ func hexToCompact(hex []byte) []byte {
|
||||
}
|
||||
|
||||
func compactToHex(compact []byte) []byte {
|
||||
if len(compact) == 0 {
|
||||
return compact
|
||||
}
|
||||
base := keybytesToHex(compact)
|
||||
// delete terminator flag
|
||||
if base[0] < 2 {
|
||||
|
Reference in New Issue
Block a user