plugeth/cmd/utils
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
..
cmd.go cmd/{geth,utils}: add cmd to export preimages in snap enumeration order (#28256) 2023-11-22 14:48:25 +01:00
diskusage_openbsd.go all: update license headers and AUTHORS from git history (#24947) 2022-05-24 20:39:40 +02:00
diskusage_windows.go all: update license headers and AUTHORS from git history (#24947) 2022-05-24 20:39:40 +02:00
diskusage.go all: more linters (#24783) 2022-06-13 16:24:45 +02:00
export_test.go cmd: run tests in parallel (#28546) 2023-11-20 10:52:14 +01:00
flags_legacy.go all: activate pbss as experimental feature (#26274) 2023-08-10 22:21:36 +03:00
flags_test.go cmd: run tests in parallel (#28546) 2023-11-20 10:52:14 +01:00
flags.go cmd/geth: add support for --dev flag in dumpgenesis (#28463) 2023-11-22 12:08:39 +01:00
prompt_test.go cmd: run tests in parallel (#28546) 2023-11-20 10:52:14 +01:00
prompt.go all: update license headers and AUTHORS from git history (#24947) 2022-05-24 20:39:40 +02:00