go-ethereum icon indicating copy to clipboard operation
go-ethereum copied to clipboard

Add export-history subcommand.

Open henridf opened this issue 3 years ago • 2 comments

geth export-history exports blocks and receipts in SSZ format.

running todo:

  • [x] Add logging
  • [x] Check cli params: start < end
  • [x] Print out hash root for info purposes (it can also be computed with bart )

henridf avatar Jul 18 '22 16:07 henridf

I rebased to master.

lightclient avatar Aug 24 '22 21:08 lightclient

@lightclient I moved the ssz definitions into the repo.

Unfortunately right now annotating types.Block isn't possible due to some current limitations of fastssz:

  • can't handle the common.Hash and common.Address types in Header (https://github.com/ferranbt/fastssz/issues/108 - I will take a stab at at).
  • big.Ints aren't supported (https://github.com/ferranbt/fastssz/issues/107)

henridf avatar Sep 16 '22 10:09 henridf

Superseded by #26621

holiman avatar Feb 06 '23 19:02 holiman