go-ethereum/core/state
rjl493456442 35e0525bf4 core, eth/protocols/snap, trie: fix cause for snap-sync corruption, implement gentrie (#29313)
This pull request defines a gentrie for snap sync purpose.

The stackTrie is used to generate the merkle tree nodes upon receiving a state batch. Several additional options have been added into stackTrie to handle incomplete states (either missing states before or after).

In this pull request, these options have been relocated from stackTrie to genTrie, which serves as a wrapper for stackTrie specifically for snap sync purposes.

Further, the logic for managing incomplete state has been enhanced in this change. Originally, there are two cases handled:

-    boundary node filtering
-    internal (covered by extension node) node clearing

This changes adds one more:

- Clearing leftover nodes on the boundaries.

This feature is necessary if there are leftover trie nodes in database, otherwise node inconsistency may break the state healing.
2024-04-17 07:22:00 +02:00
..
pruner all: remove the dependency from trie to triedb (#28824) 2024-02-13 14:49:53 +01:00
snapshot core, eth/protocols/snap, trie: fix cause for snap-sync corruption, implement gentrie (#29313) 2024-04-17 07:22:00 +02:00
access_list.go all: implement EIP-2929 (gas cost increases for state access opcodes) + yolo-v2 (#21509) 2020-10-23 08:26:57 +02:00
database.go all: remove the dependency from trie to triedb (#28824) 2024-02-13 14:49:53 +01:00
dump.go cmd/evm: fix dump after state-test exec (#28650) 2023-12-08 11:06:01 +01:00
iterator.go cmd, core, trie: verkle-capable `geth init` (#28270) 2023-11-14 13:09:40 +01:00
iterator_test.go all: activate pbss as experimental feature (#26274) 2023-08-10 22:21:36 +03:00
journal.go all: use uint256 in state (#28598) 2024-01-23 14:51:58 +01:00
metrics.go core/state: value diff tracking in StateDB (#27349) 2023-07-11 15:43:23 +02:00
state_object.go core/state, core/vm: minor uint256 related perf improvements (#28944) 2024-02-07 17:01:38 +01:00
state_object_test.go build: use golangci-lint (#20295) 2019-11-18 10:49:17 +02:00
state_test.go all: remove the dependency from trie to triedb (#28824) 2024-02-13 14:49:53 +01:00
statedb.go core, eth/protocols/snap, trie: fix cause for snap-sync corruption, implement gentrie (#29313) 2024-04-17 07:22:00 +02:00
statedb_fuzz_test.go all: remove the dependency from trie to triedb (#28824) 2024-02-13 14:49:53 +01:00
statedb_test.go all: remove the dependency from trie to triedb (#28824) 2024-02-13 14:49:53 +01:00
sync.go core,eth,internal: fix typo (#29024) 2024-02-20 19:42:48 +08:00
sync_test.go all: remove the dependency from trie to triedb (#28824) 2024-02-13 14:49:53 +01:00
transient_storage.go all: implement EIP-1153 transient storage (#26003) 2022-11-16 10:18:52 +01:00
trie_prefetcher.go cmd, core, trie: verkle-capable `geth init` (#28270) 2023-11-14 13:09:40 +01:00
trie_prefetcher_test.go all: use uint256 in state (#28598) 2024-01-23 14:51:58 +01:00