Skip to main content

Questions tagged [genesis]

Questions about the genesis block or genesis configuration of a chain.

Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

Starting node from 2 different servers, peer ids on different chains

I have successfully started multiple nodes locally on one server but cannot get it working using 2 separate servers. I keep getting: Bootnode with peer id ...
Bob Linux's user avatar
  • 113
2 votes
0 answers
31 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::...
Deepak Chaudhary's user avatar
1 vote
1 answer
69 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 ...
Benjamin Gallois's user avatar
1 vote
2 answers
56 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 ...
Valentin Fernandez's user avatar
0 votes
1 answer
90 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 ...
Faraz Ahmad's user avatar
5 votes
0 answers
142 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 ...
ALeSD's user avatar
  • 489
5 votes
1 answer
103 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<...
JoshOrndorff's user avatar
  • 1,191
0 votes
1 answer
47 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 ...
Drew Stone's user avatar
  • 1,194
1 vote
1 answer
76 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 ...
William Freudenberger's user avatar
2 votes
1 answer
40 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 ...
Bernardo Rodrigues's user avatar
4 votes
1 answer
125 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 ...
magecnion's user avatar
  • 242
2 votes
0 answers
50 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<...
Discardo's user avatar
  • 436
2 votes
1 answer
111 views

How to add initial nominators in the customSpec.json?

I want to generate a customSpec.json where i can manually add the accounts of the initial_nominators. I've seen the code chain_spec.rs where we in the fn testnet_genesis there is initial nominators. ...
Arunjot Singh's user avatar
3 votes
0 answers
86 views

Switching from Aura to Babe - 'Current state of blockchain has invalid authorities set'

I'm attempting to switch a node from using Aura to Babe by copying the usage of Babe in some public chains. However when I run multiple nodes together I get the error: Unable to fetch auxiliary data ...
Jonathan Gray's user avatar
3 votes
1 answer
67 views

How to implement Debug trait for runtime GenesisConfig?

GenesisConfig is implemented for each pallet, but the runtime GenesisConfig (ex: polkadot::GenesisConfig) is not implemented explicitly. So my question is: how to implement a trait (Debug for example) ...
Hugo Trentesaux's user avatar
2 votes
1 answer
63 views

Modify the Genesis file/WASM after getting the slot but before the parachain creates the block

I want to find a way to check whether the parachain's genesis file/WASM can be changed after getting the slot but before creating the first block by the users who registered the parachain. Is that ...
Jay Pan's user avatar
  • 75
0 votes
1 answer
40 views

Substrate Deployment for Prod/Staging

I am wondering where do you deploy your substrate nodes for production or staging? Do you deploy the nodes to some cloud servers? How many connected nodes are sufficient to keep the network running?
FWIDY's user avatar
  • 1
4 votes
1 answer
56 views

Is possible to set the genesis block number to non-zero value?

As we are going to release a new chain base on the old state and we want to avoid the break changes as much as possible.
AurevoirXavier's user avatar
  • 10.4k
1 vote
1 answer
57 views

How to configure genesis_config for pre defined functional pallets?

Substrate has provided some pre-defined functional pallets. We need to configure these pallet in our custom runtime in order to use them. Some of these pallets like pallet_treasury, pallet_collective ...
Syed Kamran's user avatar
2 votes
1 answer
78 views

Update parathread WASMs during auction

If a parathread is part of an auction but is not yet a parachain, would it be possible to update its genesis-state and genesis-wasm by deregistering it and re-registering with the updated files? This ...
shibshib's user avatar
  • 127
2 votes
1 answer
77 views

Can we update the genesis head wasm after obtaining a slot?

I have some confusion regarding WASM genesis state. I'm not entirely sure what it contains or how to update it once we've acquired a slot. For some context: assume we have a substrate based chain that ...
shibshib's user avatar
  • 127
1 vote
1 answer
70 views

Genesis build order

From what I see in the code, the Executive pallet controls the hook order via one of the passed parameters AllPallets, AllPalletsReversed, etc. that depend upon the declaration order in ...
nbaztec's user avatar
  • 197
1 vote
1 answer
108 views

Failure on HRMP channel creation

To update a parachain in a dev environment without redeploying the relaychain and other parachains I used sudoScheduleParaCleanup extrinsic. The cleanup and new onboarding seemed successful initially. ...
Rodrigo Quelhas's user avatar
1 vote
1 answer
30 views

How do you hide test accounts when they are not endowed?

Our chain spec does not endow any of the test accounts yet we are still seeing them shown (with zero balances) in the Polkadot UI. How do we hide them?
vadersfather's user avatar
1 vote
1 answer
38 views

Setting a value to an arbitrary key at genesis?

I am wondering if it is possible to set a value to an arbitrary storage key at genesis. Let's say I want to populate the key 0x3fba98689ebed1138735e0e7a5a790abee99a84ccbfb4b82e714617e5e06f6f7 at ...
Alejandro Martínez's user avatar
1 vote
1 answer
107 views

How to mint assets configured in GenesisConfig

I have configured an asset in the GenesisConfig of my node's chain_spec as following: assets: AssetsConfig { assets: vec![(1000, root_key.clone(), true, 1)], // Genesis assets: id, ...
Alessandro B's user avatar
2 votes
1 answer
266 views

The trait Deserialize is not implemented for a Get<u32> constant

I am implementing the MaxEncodedLen trait for my pallet. I have this struct in a separate crate. I use this struct as my GenesisConfig, which is why it derives serde::Serialize and serde::Deserialize :...
Clara van Staden's user avatar
3 votes
0 answers
78 views

how to use export-state then add the custom aura and grandpa authorities

I've been trying to use the export-state and then add the custom set of authorities to the aura and grandpa as per the Simulate network tutorial, but i'm always getting the file as a raw genesis file ...
woss's user avatar
  • 160
0 votes
1 answer
409 views

What is the best way to find the genesis hash for a chain?

My understanding is the following terms which are used in different contexts and applications all refer to the same thing: "genesis hash", "network key", "chain id". I ...
Alex Sed's user avatar
  • 590
4 votes
1 answer
292 views

How to manage storage when a pallet is instantiated more than once?

I am working on an exercise involving liquid staking, where two different tokens are managed. It was suggested to me that I might try instantiating the Balances pallet twice, following the pattern of ...
psfblair's user avatar
3 votes
1 answer
100 views

Is there a way to add a pallet with genesis config through a runtime upgrade?

I have a chain running with some pallets in the runtime. Now I want to add a new (already existing) pallet in the runtime, but this pallet has some genesis config entries. Is it possible to add this ...
Gautam D's user avatar
9 votes
2 answers
205 views

What is the full list of ChainSpec properties?

The ChainSpec type has a from_genesis method which takes an Option<Properties>. This Properties object is: /// Arbitrary properties defined in chain spec as a JSON object pub type Properties = ...
Kyle's user avatar
  • 311
1 vote
2 answers
195 views

On-chain storage version on new chain seems to be incorrect

I modified the template pallet from the substrate node template 681a9d8e3e8becf99aabf1cc76e1c08016db2e1a to contain a storage version: const STORAGE_VERSION: StorageVersion = StorageVersion::new(123); ...
mkl's user avatar
  • 432
0 votes
0 answers
157 views

Node Does not Produce Blocks

I've been trying to implement a PoW consensus for my node. It was based on node template, the recipe and Kulupu's implementation of PoW. So I did quite a lot of changes to the node template and thus I'...
CREESTL's user avatar
  • 484
2 votes
1 answer
118 views

After genesis has occurred how do I configure new pallet with pre-filled storage?

This question is somewhat similar to this question about configuring for testing but it is for an already live chain. In this scenario a new pallet will be added to an existing chain's runtime. The ...
T9b's user avatar
  • 466
0 votes
1 answer
133 views

Serde::Serialize/Deserialize for BoundedVec

Do I have to manually Serialize/Deserialize BoundedVec? Update: There was no implementation, so I'm coding one here
shabanovd's user avatar
0 votes
1 answer
62 views

Can I modify the `BlockHashCount` on my chain safely to change transaction mortality?

Background Transaction Mortality is described on the Polkadot Wiki as: Extrinsics can be mortal or immortal... If the extrinsic is not included in a block within this validity window, it will be ...
Nuke's user avatar
  • 1,842
2 votes
0 answers
28 views

Grandpa authorities in the context of pallet-staking

In pallet-staking's genesis config there are two items : pub validator_count: u32, pub minimum_validator_count: u32, Question : How are we to interpret them in the context of Grandpa finality? I know ...
Purple_Turtle's user avatar
1 vote
0 answers
47 views

How would adding more weight to grandpa voting of my initial authority at genesis affect finality?

Currently I am starting my node with one authority, and the genesis config for grandpa looks like this : grandpa: GrandpaConfig { authorities: vec![] }, Would it be possible to assign some privileged ...
Purple_Turtle's user avatar
8 votes
2 answers
164 views

When inserting authority keys, should I choose the controller derivation, the stash derivation, or just the vanilla secret?

Starting a PoS network, I realised that my local node requires keys to start producing blocks. Unlike in test networks where I could simply pass --alice and have the validator keys inserted into the ...
Purple_Turtle's user avatar
3 votes
1 answer
46 views

Is the genesis built on the MAC different from the genesis built on Linux

If you register parathread with genesis and WASM generated on the MAC, then run the blockchain on Linux. Will this future run blockchain and fail?
99kies's user avatar
  • 753
4 votes
1 answer
167 views

How can I configure genesis state for my pallet's tests without hardcoding it?

I've been writing tests for pallet-kitties and have configured the genesis state inside my mock runtime by setting the storage items for two kitties (one Male and one Female) and their owners (with ...
Sacha Lansky's user avatar
  • 2,640
5 votes
2 answers
102 views

chain state after parachain slot renewal

from the cumulus tutorial: ... You cannot, at this time, connect a parachain with any previous state to a relay chain. All parachains must start from block 0 on the relay chain... If that is the ...
Bernardo Rodrigues's user avatar
6 votes
2 answers
427 views

How to overwrite endowed account balances using additional accounts and balances from a JSON file for genesis block inclusion?

My goal is to allocate a balance in the genesis block to both: A list of endowed accounts already included in the chain specification chain_spec.rs A list of further accounts and balances included in ...
Luke Schoen's user avatar
  • 2,332
2 votes
1 answer
135 views

How to do re-genesis in a running Substrate chain?

I need to store the chain state after some interval and start it with new genesis. How I can do that? Please read this issue for reference. Also, is there any other way to achieve this except re-...
rahul's user avatar
  • 133