go-ethereum/eth
rjl493456442 6d2aeb43d5
cmd, core/state, eth, tests, trie: improve state reader (#27428)
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.
2023-06-20 15:31:45 -04:00
..
catalyst all: move main transaction pool into a subpool (#27463) 2023-06-16 15:29:40 +03:00
downloader eth/downloader: drop beacon head updates if the syncer is restarting (#27397) 2023-06-05 09:59:38 +03:00
ethconfig all: move main transaction pool into a subpool (#27463) 2023-06-16 15:29:40 +03:00
fetcher all: move main transaction pool into a subpool (#27463) 2023-06-16 15:29:40 +03:00
filters eth/filters: reuse handleLogs method for removed logs (#27438) 2023-06-08 11:40:22 +02:00
gasprice eth: use slices package for sorting (#27490) 2023-06-19 23:38:57 +02:00
protocols cmd, core/state, eth, tests, trie: improve state reader (#27428) 2023-06-20 15:31:45 -04:00
tracers eth: use slices package for sorting (#27490) 2023-06-19 23:38:57 +02:00
api_admin.go eth: split api.go into namespace based files (#27263) 2023-05-29 05:09:34 -04:00
api_backend.go all: move main transaction pool into a subpool (#27463) 2023-06-16 15:29:40 +03:00
api_debug_test.go cmd, core/state, eth, tests, trie: improve state reader (#27428) 2023-06-20 15:31:45 -04:00
api_debug.go cmd, core/state, eth, tests, trie: improve state reader (#27428) 2023-06-20 15:31:45 -04:00
api_miner.go core/txpool: make transaction validation reusable across packages (pools) (#27429) 2023-06-06 12:53:29 +03:00
api.go les, eth: fix typo in comment (#27369) 2023-05-30 14:55:03 +02:00
backend.go all: move main transaction pool into a subpool (#27463) 2023-06-16 15:29:40 +03:00
bloombits.go eth: move eth.Config to a common package (#22205) 2021-02-05 13:51:15 +01:00
handler_eth_test.go all: move main transaction pool into a subpool (#27463) 2023-06-16 15:29:40 +03:00
handler_eth.go eth: use new atomic types (#27137) 2023-04-25 12:06:50 +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 all: move main transaction pool into a subpool (#27463) 2023-06-16 15:29:40 +03:00
handler.go all: move main transaction pool into a subpool (#27463) 2023-06-16 15:29:40 +03:00
peer.go eth: remove admin.peers[i].eth.head and difficulty (#26804) 2023-03-06 09:27:46 +02:00
peerset.go all: fix some typos (#25551) 2022-08-19 09:00:21 +03:00
state_accessor.go core/types, params: add blob transaction type, RLP encoded for now (#27049) 2023-04-21 12:52:02 +03:00
sync_test.go eth: use new atomic types (#27137) 2023-04-25 12:06:50 +02:00
sync.go eth: use new atomic types (#27137) 2023-04-25 12:06:50 +02:00