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. |
||
---|---|---|
.. | ||
pruner | ||
snapshot | ||
access_list.go | ||
database.go | ||
dump.go | ||
iterator_test.go | ||
iterator.go | ||
journal.go | ||
metrics.go | ||
state_object_test.go | ||
state_object.go | ||
state_test.go | ||
statedb_test.go | ||
statedb.go | ||
sync_test.go | ||
sync.go | ||
transient_storage.go | ||
trie_prefetcher_test.go | ||
trie_prefetcher.go |