paritytech / polkadot-sdk

The Parity Polkadot Blockchain SDK
https://polkadot.com/
1.88k stars 688 forks source link

feature request: support import-blocks and export-blocks capabilities via RPC #809

Open onejoelman opened 2 years ago

onejoelman commented 2 years ago

Polkadot binary offers a feature of exporting blocks in binary and json formats, as well as importing them afterwards. Please port this feature to the official RPC (preferably both JSON-RPC and WS) api, enabling remote block submitting (like bitcoin has)

Right now, I'm using a patch, running a bash command via ssh to do the following:

This seems to me a bit of a hack, and I'd be very happy if you could look into this feature.

Many thanks! Joel

bkchr commented 2 years ago

For what you need this feature?

onejoelman commented 2 years ago

maintaining an offline network

bkchr commented 2 years ago

What is an offline network?

onejoelman commented 2 years ago

a bunch of computers that aren't connected to the internet, but connected within themselves (intra-net)

bkchr commented 2 years ago

Sounds to me like a very niche use case.

onejoelman commented 2 years ago

still, it's already partially implemented