go-ethereum/eth
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
..
catalyst eth/catalyst: remove variable in tx conversion loop (#29076) 2024-02-26 13:22:13 +01:00
downloader core,eth,internal: fix typo (#29024) 2024-02-20 19:42:48 +08:00
ethconfig cmd, les, tests: remove light client code (#28586) 2023-11-23 16:28:26 +02:00
fetcher core: move genesis alloc types to core/types (#29003) 2024-02-16 19:05:33 +01:00
filters eth/filters: enforce topic-limit early on filter criterias (#29535) 2024-04-17 07:22:00 +02:00
gasestimator all: use uint256 in state (#28598) 2024-01-23 14:51:58 +01:00
gasprice core: move genesis alloc types to core/types (#29003) 2024-02-16 19:05:33 +01:00
protocols core, eth/protocols/snap, trie: fix cause for snap-sync corruption, implement gentrie (#29313) 2024-04-17 07:22:00 +02:00
tracers eth/tracers: Fix callTracer logs on onlyTopCall == true (#29068) 2024-02-27 10:29:12 +01:00
api.go les, eth: fix typo in comment (#27369) 2023-05-30 14:55:03 +02:00
api_admin.go eth: ignore genesis block on importChain (#27956) 2023-08-21 13:32:34 -04:00
api_backend.go core/txpool, eth, miner: retrieve plain and blob txs separately (#29026) 2024-02-20 11:37:23 +02:00
api_debug.go cmd/evm, core/state: fix post-exec dump of state (statetests, blockchaintests) (#28504) 2023-11-28 13:54:17 +01:00
api_debug_test.go all: remove the dependency from trie to triedb (#28824) 2024-02-13 14:49:53 +01:00
api_miner.go core,eth,internal: fix typo (#29024) 2024-02-20 19:42:48 +08:00
backend.go core/txpool/legacypool: use uint256.Int instead of big.Int (#28606) 2024-02-13 10:10:11 +01:00
bloombits.go eth: move eth.Config to a common package (#22205) 2021-02-05 13:51:15 +01:00
handler.go core/txpool, eth, miner: retrieve plain and blob txs separately (#29026) 2024-02-20 11:37:23 +02:00
handler_eth.go cmd/devp2p, eth: drop support for eth/67 (#28956) 2024-02-08 15:49:19 +02:00
handler_eth_test.go cmd/devp2p, eth: drop support for eth/67 (#28956) 2024-02-08 15:49:19 +02:00
handler_snap.go eth: check snap satelliteness, delegate drop to eth (#22235) 2021-02-02 10:44:36 +02:00
handler_test.go core/txpool, eth, miner: retrieve plain and blob txs separately (#29026) 2024-02-20 11:37:23 +02:00
peer.go eth: remove admin.peers[i].eth.head and difficulty (#26804) 2023-03-06 09:27:46 +02:00
peerset.go eth: fix potential hang in waitSnapExtension (#28744) 2024-01-15 15:32:03 +01:00
state_accessor.go all: remove the dependency from trie to triedb (#28824) 2024-02-13 14:49:53 +01:00
sync.go core/txpool, eth, miner: retrieve plain and blob txs separately (#29026) 2024-02-20 11:37:23 +02:00
sync_test.go cmd/devp2p, eth: drop support for eth/67 (#28956) 2024-02-08 15:49:19 +02:00