• rjl493456442's avatar
    cmd, core/state, eth, tests, trie: improve state reader (#27428) · 6d2aeb43
    rjl493456442 authored
    The state availability is checked during the creation of a state reader.
    
    -    In hash-based database, if the specified root node does not exist on disk disk, then
        the state reader won't be created and an error will be returned.
    
    -    In path-based database, if the specified state layer is not available, then the
        state reader won't be created and an error will be returned.
    
    This change also contains a stricter semantics regarding the `Commit` operation: once it has been performed, the trie is no longer usable, and certain operations will return an error. 
    6d2aeb43
Name
Last commit
Last update
..
evm-benchmarks @ d8b88f40 Loading commit data...
fuzzers Loading commit data...
solidity Loading commit data...
testdata @ bac70c50 Loading commit data...
block_test.go Loading commit data...
block_test_util.go Loading commit data...
difficulty_test.go Loading commit data...
difficulty_test_util.go Loading commit data...
gen_btheader.go Loading commit data...
gen_difficultytest.go Loading commit data...
gen_stenv.go Loading commit data...
gen_sttransaction.go Loading commit data...
init.go Loading commit data...
init_test.go Loading commit data...
rlp_test.go Loading commit data...
rlp_test_util.go Loading commit data...
state_test.go Loading commit data...
state_test_util.go Loading commit data...
transaction_test.go Loading commit data...
transaction_test_util.go Loading commit data...