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

Companion for substrate#9732#678

Merged
paritytech-processbot[bot] merged 38 commits intomasterfrom
state-update4-host2-nopatch
Dec 24, 2021
Merged

Companion for substrate#9732#678
paritytech-processbot[bot] merged 38 commits intomasterfrom
state-update4-host2-nopatch

Conversation

@cheme
Copy link
Copy Markdown
Contributor

@cheme cheme commented Oct 19, 2021

/// Generate the genesis block from a given ChainSpec.
pub fn generate_genesis_block<Block: BlockT>(
chain_spec: &Box<dyn ChainSpec>,
genesis_state_version: sp_runtime::StateVersion,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we not fetch the runtime version from the code in the genesis state? As we do this in Substrate?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was my first idea, but current code need an executor (for compatibility I think), so ends up being really easier to use this way.
You think it is a must have, or can we keep it this way (seems only use from commands at this point)?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, this is not really future proof.

impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
state_version: 1,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
state_version: 1,
state_version: 0,

Probably too late.

@paritytech-processbot
Copy link
Copy Markdown

Waiting for commit status.

@paritytech-processbot
Copy link
Copy Markdown

Merge cancelled due to error. Error: Checks failed for 05e0861

@paritytech-processbot
Copy link
Copy Markdown

Waiting for commit status.

@paritytech-processbot
Copy link
Copy Markdown

Merge cancelled due to error. Error: Checks failed for 7869bae

@cheme
Copy link
Copy Markdown
Contributor Author

cheme commented Dec 24, 2021

bot merge

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants