Questions tagged [genesis]
Questions about the genesis block or genesis configuration of a chain.
47 questions
1 vote
1 answer
54 views
How to fix "runtime requires function imports which are not present on the host: 'env:_RNvCs6s5TXQrOxQg_7___rustc17rust_begin_unwind' "?
I use the following HostFunctions: #[cfg(feature = "runtime-benchmarks")] pub type HostFunctions = ( cumulus_client_service::ParachainHostFunctions, frame_benchmarking::benchmarking::...
0 votes
1 answer
44 views
Where to find an up-to-date guide for Substrate chain-spec-builder presets (sp-genesis-builder)?
I’m trying to build a custom solochain spec using the chain-spec-builder tool in the latest Polkadot SDK. I’m following the official documentation, but it doesn’t explain in detail how the presets (...
1 vote
1 answer
61 views
In the Genesis Config, what does the `patch` key do?
When creating a genesis config, we have the ability to add a genesis.runtimeGenesis.patch. What is the main purpose of this patch and why would I use this rather than directly setting the ...
2 votes
2 answers
46 views
Is It Possible to Add a Genesis Configuration to a Third-Party Pallet in Substrate?
I am working on a Substrate-based blockchain and need to add a genesis configuration for a pallet that I do not own and cannot modify. My goal is to extend the pallet_identity and add registrars ...
2 votes
0 answers
40 views
How to convert AccountId from [hexadecimal, SS58Check]?[Updated]
I have two 2 storage in the pallet : #[pallet::storage] #[pallet::getter(fn subscriber)] pub type Subscriber<T:Config> = StorageValue<_, BoundedVec<T::AccountId, T::...
1 vote
1 answer
91 views
`The trait Deserialize is not implemented for a` GenesisConfig
I am in the process of upgrading a project from version 0.9.42 to 1.6.0, where the BuildGenesisConfig was added and BuildGenesis was deprecated, and I encounter an error (the trait Serialize is not ...
1 vote
2 answers
69 views
Genesis chainspec size limit
I understand that there is a PoV size limitation for blocks produced by the chain, since they need to be imported, and validated by validator nodes. However, I'm curious about whether this limitation ...
0 votes
1 answer
116 views
setting up pallet_session genesis keys in running chain
I am running a solo chain with Genesis authorities set up for AURA and GRANPA. Now I have to add new validators and for that, I am planning to add substrate_validator_set and pallet_session. During ...
5 votes
0 answers
164 views
Genesis Sync and History: Are Archive Nodes Indispensable?
I've been exploring the intricacies of node types in Polkadot and other Substrate-based networks and came across a scenario that has left me curious. I understand that full nodes and archive nodes ...
5 votes
1 answer
133 views
Extrinsics In Genesis Block
All the Substrate-based chains that I know of have no transactions in the genesis block. The genesis block is the same data structure as all other blocks and therefore does have a body and a Vec<...
0 votes
1 answer
57 views
Newer nodes unable to execute genesis chainspec, "unknown field `phantom`"
We've been running a testnet and have executed a number of runtime upgrades. We've also upgraded the node across a variety of changes. New validators are trying to join the network and yet they cannot ...
1 vote
1 answer
96 views
Alter existing chain spec without mutating genesis hash
What contents of a non-raw chain spec can be added or altered without mutating the derived genesis hash? More specifically, does changing a pallet's genesis configuration in the spec lead to a ...
2 votes
1 answer
44 views
EVM solo to para migration on Genesis
I need to migrate the state of an EVM solochain (not substrate) into a Frontier-based parachain. The original chain has been running for a while with high activity, so the state is fairly big. I am ...
4 votes
1 answer
141 views
Unable to sync after runtime upgrade
After performing an upgrade on a remote node that includes a new pallet in my runtime, I attempted to sync a local node with the remote one, but I encountered the following error: Bootnode with peer ...
2 votes
0 answers
58 views
Having trouble with the `ChainSpec` Type
I've updated the ChainSpec type from: pub type ChainSpec = sc_service::GenericChainSpec<GenesisConfig, Extensions>; to pub type ChainSpec = sc_service::GenericChainSpec<Result<...