• 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
..
triedb/hashdb Loading commit data...
trienode Loading commit data...
committer.go Loading commit data...
database_test.go Loading commit data...
database_wrap.go Loading commit data...
encoding.go Loading commit data...
encoding_test.go Loading commit data...
errors.go Loading commit data...
hasher.go Loading commit data...
iterator.go Loading commit data...
iterator_test.go Loading commit data...
node.go Loading commit data...
node_enc.go Loading commit data...
node_test.go Loading commit data...
preimages.go Loading commit data...
proof.go Loading commit data...
proof_test.go Loading commit data...
secure_trie.go Loading commit data...
secure_trie_test.go Loading commit data...
stacktrie.go Loading commit data...
stacktrie_test.go Loading commit data...
sync.go Loading commit data...
sync_test.go Loading commit data...
tracer.go Loading commit data...
tracer_test.go Loading commit data...
trie.go Loading commit data...
trie_id.go Loading commit data...
trie_reader.go Loading commit data...
trie_test.go Loading commit data...