plugeth/cmd/geth
Guillaume Ballet d468c333a7
cmd/{geth,utils}: add cmd to export preimages in snap enumeration order (#28256)
Adds a subcommand: `geth snapshot export-preimages`, to export preimages of every hash found during a snapshot enumeration: that is, it exports _only the active state_, and not _all_ preimages that have been used but are no longer part of the state. 

This tool is needed for the verkle transition, in order to distribute the preimages needed for the conversion. Since only the 'active' preimages are exported, the output is shrunk from ~70GB to ~4GB.

The order of the output is the order used by the snapshot enumeration, which avoids database thrashing. However, it also means that storage-slot preimages are not deduplicated.
2023-11-22 14:48:25 +01:00
..
testdata cmd/geth: more special cases logging tests (#28527) 2023-11-15 09:54:35 +01:00
accountcmd_test.go cmd: run tests in parallel (#28546) 2023-11-20 10:52:14 +01: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: atomic types used (#27756) 2023-07-24 13:22:54 +03:00
chaincmd.go cmd/{geth,utils}: add cmd to export preimages in snap enumeration order (#28256) 2023-11-22 14:48:25 +01:00
config.go cmd, eth: switch the dev synctarget to hash from block (#28209) 2023-09-29 22:11:15 +03:00
consolecmd_test.go cmd: run tests in parallel (#28546) 2023-11-20 10:52:14 +01:00
consolecmd.go node: remove unused error return from Attach (#27450) 2023-06-14 08:24:47 -04:00
dbcmd.go cmd, core, trie: verkle-capable geth init (#28270) 2023-11-14 13:09:40 +01:00
exportcmd_test.go cmd: run tests in parallel (#28546) 2023-11-20 10:52:14 +01:00
genesis_test.go cmd/geth: fix failing test (#28322) 2023-10-12 09:54:00 +02:00
les_test.go cmd: run tests in parallel (#28546) 2023-11-20 10:52:14 +01:00
logging_test.go cmd: run tests in parallel (#28546) 2023-11-20 10:52:14 +01:00
logtestcmd_active.go cmd/geth: more special cases logging tests (#28527) 2023-11-15 09:54:35 +01:00
logtestcmd_inactive.go cmd/geth: test for logging-output (#28373) 2023-10-25 17:57:12 +02:00
main.go cmd/{geth,utils}: add cmd to export preimages in snap enumeration order (#28256) 2023-11-22 14:48:25 +01: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: make vendored copy of reexec (#28382) 2023-10-28 00:14:43 +02:00
snapshot.go cmd/{geth,utils}: add cmd to export preimages in snap enumeration order (#28256) 2023-11-22 14:48:25 +01:00
verkle.go cmd, core, trie: verkle-capable geth init (#28270) 2023-11-14 13:09:40 +01:00
version_check_test.go cmd: run tests in parallel (#28546) 2023-11-20 10:52:14 +01:00
version_check.go cmd: migrate to urfave/cli/v2 (#24751) 2022-06-27 18:22:36 +02:00