• rjl493456442's avatar
    cmd/geth: implement data import and export (#22931) · 2e8b58f0
    rjl493456442 authored
    This PR offers two more database sub commands for exporting and importing data.
    Two exporters are implemented: preimage and snapshot data respectively. 
    The import command is generic, it can take any data export and import into leveldb. 
    The data format has a 'magic' for disambiguation, and a version field for future compatibility. 
    2e8b58f0
chaincmd.go 14.6 KB