• 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
trie_prefetcher_test.go 4.03 KB