This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Description
Should be a CLI option --export-chain which will dump the serialised blocks Vec<u8> as Slicable to output. Should be a corresponding --import-chain option which will import the blocks.
The specific encoding should be for block: SpecialisedBlock in blockchain.iter() { block.encode().encode() }. The first encode gets a Vec<u8> which is runtime/format agnostic. The second encode essentially just prepends the length of the Vec so that it can be read from a stream without a more complex container format.