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

Blockchain import/export #219

Closed
Closed
@gavofyork

Description

@gavofyork

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.

Metadata

Metadata

Assignees

Labels

Z2-mediumCan be fixed by a coder with good Rust knowledge but little knowledge of the codebase.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions