plugeth/light
Guillaume Ballet 8990c92aea
core/state: add account address to Trie slot accessors (#26934)
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.
2023-03-23 11:52:22 +01:00
..
lightchain_test.go all: use unified emptyRootHash and emptyCodeHash (#26718) 2023-02-21 06:12:27 -05:00
lightchain.go core, les, light: implement timestamp based sethead and genesis rewinds 2023-01-03 12:57:07 +02:00
nodeset.go all: integrate the freezer with fast sync 2019-05-16 10:39:32 +03:00
odr_test.go core, core/types: plain Message struct (#25977) 2023-03-09 14:19:12 +01:00
odr_util.go core/types: add EffectiveGasPrice in Receipt (#26713) 2023-03-06 17:19:41 +01:00
odr.go all: refactor txpool into it's own package in prep for 4844 2022-10-24 16:35:53 +03:00
postprocess.go core/state, trie: remove unused error-return from trie Commit operation (#26641) 2023-02-09 08:56:59 -05:00
trie_test.go all: cleanup tests (#25641) 2022-09-07 20:21:59 +02:00
trie.go core/state: add account address to Trie slot accessors (#26934) 2023-03-23 11:52:22 +01:00
txpool_test.go light: fix receiver name from Python style to Go (#26631) 2023-02-08 11:37:33 +02:00
txpool.go all: make timestamp-based fork checks based on uint64 (#26474) 2023-01-25 12:12:28 +01:00