-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Support custom genesis block #12291
Support custom genesis block #12291
Conversation
…ll refactorings Useful for the commit following.
Substrate users can use this trait to implement their custom genesis block when constructing the client.
… support-custom-genesis-block
… support-custom-genesis-block
… support-custom-genesis-block
@bkchr Could you please take a look at this PR? I'll prepare the companion PR if you think it's on the right track. |
Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions. |
ping @bkchr |
… support-custom-genesis-block
Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions. |
… support-custom-genesis-block
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sooooooorrrrrrryyyyyyyy for all the delay. Looks good so far, just some minor changes.
Please also merge master.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ty!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes looks good to me.
Ping @bkchr |
Ty @liuchengxu Can you post your polkadot address? |
/tip small |
@bkchr ERROR: Error: Contributor did not properly post their account address. Make sure the pull request description has: "{network} address: {address}". Make sure the pull request description has: "{network} address: {address}". |
Thanks @bkchr , polkadot address attached! |
/tip small |
@bkchr A small tip was successfully submitted for liuchengxu (12py2VL5Mn9j28KCLxMCRMe7ons2LPUeJ6STPv9RFhrHrwwp on polkadot). https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc.polkadot.io#/treasury/tips |
This pull request has been mentioned on Polkadot Forum. There might be relevant details there: https://forum.polkadot.network/t/polkadot-release-analysis-v0-9-37/1736/1 |
* Set genesis block data using the built genesis block * Make resolve_state_version_from_wasm a separate function and some small refactorings Useful for the commit following. * Introduce trait BuildGenesisBlock Substrate users can use this trait to implement their custom genesis block when constructing the client. * Make call_executor test compile * cargo +nightly fmt --all * Fix test * Remove unnecessary clone * FMT * Apply review suggestions * Revert changes to new_full_client() and new_full_parts() signature * Remove needless `Block` type in `resolve_state_version_from_wasm`
* Set genesis block data using the built genesis block * Make resolve_state_version_from_wasm a separate function and some small refactorings Useful for the commit following. * Introduce trait BuildGenesisBlock Substrate users can use this trait to implement their custom genesis block when constructing the client. * Make call_executor test compile * cargo +nightly fmt --all * Fix test * Remove unnecessary clone * FMT * Apply review suggestions * Revert changes to new_full_client() and new_full_parts() signature * Remove needless `Block` type in `resolve_state_version_from_wasm`
The goal of this PR is to allow the third party to build their custom genesis block.
Close #10360
Polkadot address: 12py2VL5Mn9j28KCLxMCRMe7ons2LPUeJ6STPv9RFhrHrwwp