8990c92aea
This changes the Trie interface to add the plain account address as a parameter to all storage-related methods. After the introduction of the TryAccount* functions, TryGet, TryUpdate and TryDelete are now only meant to read an account's storage. In their current form, they assume that an account storage is stored in a separate trie, and that the hashing of the slot is independent of its account's address. The proposed structure for a stateless storage breaks these two assumptions: the hashing of a slot key requires the address and all slots and accounts are stored in a single trie. This PR therefore adds an address parameter to the interface. It is ignored in the MPT version, so this change has no functional impact, however it will reduce the diff size when merging verkle trees. |
||
---|---|---|
.. | ||
lightchain_test.go | ||
lightchain.go | ||
nodeset.go | ||
odr_test.go | ||
odr_util.go | ||
odr.go | ||
postprocess.go | ||
trie_test.go | ||
trie.go | ||
txpool_test.go | ||
txpool.go |