• Guillaume Ballet's avatar
    core/state: add account address to Trie slot accessors (#26934) · 8990c92a
    Guillaume Ballet authored
    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.
    8990c92a
Name
Last commit
Last update
.github Loading commit data...
accounts Loading commit data...
beacon/engine Loading commit data...
build Loading commit data...
cmd Loading commit data...
common Loading commit data...
consensus Loading commit data...
console Loading commit data...
contracts/checkpointoracle Loading commit data...
core Loading commit data...
crypto Loading commit data...
docs Loading commit data...
eth Loading commit data...
ethclient Loading commit data...
ethdb Loading commit data...
ethstats Loading commit data...
event Loading commit data...
graphql Loading commit data...
internal Loading commit data...
les Loading commit data...
light Loading commit data...
log Loading commit data...
metrics Loading commit data...
miner Loading commit data...
node Loading commit data...
p2p Loading commit data...
params Loading commit data...
rlp Loading commit data...
rpc Loading commit data...
signer Loading commit data...
swarm Loading commit data...
tests Loading commit data...
trie Loading commit data...
.dockerignore Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.golangci.yml Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
COPYING.LESSER Loading commit data...
Dockerfile Loading commit data...
Dockerfile.alltools Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
SECURITY.md Loading commit data...
appveyor.yml Loading commit data...
circle.yml Loading commit data...
go.mod Loading commit data...
go.sum Loading commit data...
interfaces.go Loading commit data...
oss-fuzz.sh Loading commit data...