plugeth/cmd/geth
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
..
testdata cmd/geth: update vulnerabilities.json testdata (#24856) 2022-05-16 13:41:36 +02:00
accountcmd_test.go cmd: migrate to urfave/cli/v2 (#24751) 2022-06-27 18:22:36 +02:00
accountcmd.go cmd/geth: make account commands not require datadir lock (#27084) 2023-04-27 06:57:29 -04:00
attach_test.go cmd/geth, cmd/utils: geth attach with custom headers (#25829) 2022-09-30 13:50:25 +02:00
chaincmd.go cmd: use errrors.New instead of empty fmt.Errorf (#27329) 2023-05-24 12:21:29 +02:00
config.go cmd/geth: rename variable 'extapi' (#27223) 2023-05-08 10:01:14 +03:00
consolecmd_test.go rpc, internal/cmdtest: increase timeout in tests (#27083) 2023-05-22 08:13:03 -04:00
consolecmd.go node: remove unused error return from Attach (#27450) 2023-06-14 08:24:47 -04:00
dbcmd.go cmd, core/state, eth, tests, trie: improve state reader (#27428) 2023-06-20 15:31:45 -04:00
exportcmd_test.go cmd/utils: enable snapshot generation in import-mode (#25990) 2022-10-19 08:20:39 +02:00
genesis_test.go all: remove ethash pow, only retain shims needed for consensus and tests (#27178) 2023-05-03 12:58:39 +03:00
les_test.go miner, cmd, eth: require explicit etherbase address (#26413) 2023-01-20 11:26:01 -05:00
main.go node: remove unused error return from Attach (#27450) 2023-06-14 08:24:47 -04:00
misccmd.go all: remove ethash pow, only retain shims needed for consensus and tests (#27178) 2023-05-03 12:58:39 +03:00
run_test.go all: use T.TempDir to create temporary test directories (#24633) 2022-04-08 15:44:55 +02:00
snapshot.go cmd, core/state, eth, tests, trie: improve state reader (#27428) 2023-06-20 15:31:45 -04:00
verkle.go cmd: use errrors.New instead of empty fmt.Errorf (#27329) 2023-05-24 12:21:29 +02:00
version_check_test.go all: add whitespace linter (#25312) 2022-07-25 13:14:03 +03:00
version_check.go cmd: migrate to urfave/cli/v2 (#24751) 2022-06-27 18:22:36 +02:00