You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I was trying to switch the transaction and receipt trie from HexaryTrie to BinaryTrie for ShardingVM (ethereum/py-evm#331), I found that the APIs results of these two tries are slightly different in dealing not-found-in-dict.
What was wrong?
When I was trying to switch the transaction and receipt trie from
HexaryTrie
toBinaryTrie
forShardingVM
(ethereum/py-evm#331), I found that the APIs results of these two tries are slightly different in dealing not-found-in-dict.HexaryTrie
returnsBLANK_NODE
py-trie/trie/hexary.py
Lines 69 to 79 in 4b78035
BinaryTrie
returnsNone
py-trie/trie/binary.py
Lines 57 to 86 in 4b78035
What did you expect it to do?
Code to reproduce the error
result:
^^^^ That's false.
I replaced
None
withBLANK_NODE
intrie._get()
function, and then the tests in py-evm are passed.I'm afraid that I may break
BinaryTrie
, so I wanna check with @NIC619, could I simply replaceNone
withBLANK_NODE
inBinaryTrie._get()
function?The text was updated successfully, but these errors were encountered: