ethereum / tests

Common tests for all Ethereum implementations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unify zero/non-existent storage slots

chfast opened this issue · comments

Storage slots of zero values are interpreter as non-existent / deleted and these are not included in the Merke-Patricia Trie.
It is incorrect for the tests to contain a pre-state with explicit zero storage values.

Is there a difference then?
Zero slots can be interpreted as non existent. Or is it causing wrong post state results?

It requires the special handling of the test state because zero values are never in the trie. E.g. you need to specifically filter zeros when loading JSON.

a few in pyspecs to fix as well

done