Questions tagged [chainspec]
The chainspec tag has no usage guidance.
59
questions
0
votes
1
answer
37
views
Allocate extra WASM memory to generate large chainspecs
In some cases, generating a chainspec may overload the memory allocated by the WASM blob which results in an Requested allocation size is too large error:
❯ staking-node build-spec --disable-default-...
1
vote
1
answer
26
views
Invalid JSON blob: unknown field `allianceMotion`
I am trying to generate raw json file but encounter with this error
./target/release/dip-consumer-node-template build-spec --chain plain-parachain-chainspec.json --disable-default-bootnode --raw > ...
0
votes
0
answers
19
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 ...
1
vote
0
answers
35
views
How inactive issuance get's calculated or how do we customize it in substrate-node-template
So i was working with substrate-node-template . I can see how total issuance is getting calculated from substrate node template but confused of how would i set up inactive issuance . What are the ...
0
votes
1
answer
17
views
Change chain_specs to mint custom total supply of custom coin
So, I am working with substrate-node-template . I already changed tokenSymbol and tokenDecimals,i want to mint specific amount to native coin(initially) , but confused where to start . Any insight ...
2
votes
1
answer
66
views
How to run a `polkadot-dev` or `kusama-dev` node?
Since the removal of the polkadot and kusama runtimes from the polkadot-sdk, running one of those chains with -dev or -local runs a rococo node.
How can I get a polkdadot-dev\-local or kusama-dev\...
1
vote
1
answer
44
views
Where is the plain chain spec for kusama that i can use with a kusama runtime locally?
How to run polakdot/kusama runtime + node with a full functionality locally? what chain spec can I use? where the plan chain spec are located for just a ready to start for local env with 2 nodes?
...
1
vote
2
answers
58
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 ...
3
votes
1
answer
104
views
Building a chain specification with --raw, gives me "wasm call error Other: Exported method GenesisBuilder_create_default_config is not found"
I upgraded my parachain runtime version from 1.0.0 to 1.5.0, but when trying to build a chain spec with the --raw flag, it gives me the following error:
Error: Service(Other("wasm call error ...
2
votes
3
answers
146
views
How do I modify the chain spec for a local relay chain to have an additional relay chain validator? (I already have two: Alice and Bob)
I am referring this documentation on preparing a local relay chain in which they have provided a plain sample relay chain spec. Also, I have cloned this release locally. The documentation says that
...
2
votes
0
answers
47
views
Cant produce new blocks with custom ChainSpec file
I was using substrate version of 4.0.0-dev-41ad4a6c9d7 and following the Add Trusted Nodes for making a custom account as a Authorites account
here, I can't able to produce new blocks, I don't know ...
0
votes
1
answer
49
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
82
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 ...
3
votes
1
answer
45
views
How to retrieve number of decimals for custom token (not DOT)?
How to retrieve number of decimals for custom token (not DOT)?
api.registry.chainDecimals is for DOT. I need to retrieve it for a custom token.
1
vote
2
answers
118
views
Can't able to peer two different node on different computers
We wan't to run multiple node on multiple devices. We use substrate-node-template to do that. We build the project using cargo build --release and follow this Add trusted node tutorial. We were able ...
4
votes
1
answer
129
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 ...
3
votes
1
answer
161
views
Building plain chain spec yields raw output
The command substrate build-spec > plain-chain-spec.json used to generate a human readable version of the chain spec in json. To create the more stable machine friendly version of that chain spec ...
3
votes
1
answer
73
views
Nodes not connecting to Rococo relaychain
We are having issues with RPC & Collator nodes connecting to Rococo relaychain. The running chain works but once we restart any node, it cannot find relay peers on the relaychain and thus stalls / ...
2
votes
0
answers
52
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<...
5
votes
1
answer
164
views
adding an account
I just want to simply add an account in the development config but have no idea how to do it, i tried simply adding the seed in the development_config function but it dosent work, what can i do to add ...
4
votes
1
answer
92
views
What's the difference b/w ChainType::Development vs Local?
pub enum ChainType {
/// A development chain that runs mainly on one node.
Development,
/// A local chain that runs locally on multiple nodes for testing purposes.
Local,
/// A ...
8
votes
1
answer
106
views
What are the best practices for keeping chain specifications for Devnet, Testnet, and Mainnet environments?
can anybody help me to understand what questions I should address before choosing the approach for keeping the runtime configuration for Devnet/Testnet/Mainnet environments in a substrate-based ...
2
votes
1
answer
113
views
How to create a Polkadot chain spec for development purposes?
I want to setup my own custom Relay chain for development purposes.
Is there a way to generate a local chain spec for Polkadot (Rococo) something like this:
./target/release/polkadot build-spec --...
1
vote
1
answer
43
views
Does export-state produces a random collator address?
While running export-state command against my parachain, I observed that the resultant raw parachain specs has a diffirent collator address as compared to the original one.
Does the export-sate ...
1
vote
1
answer
99
views
How to inject session key in raw chain specs?
Is is possible to add/delete session keys directly to the raw chain specs instead of plain chain specs?
2
votes
0
answers
75
views
Export-State produces wrong collators hex
I am experimenting with the export state command. For now I am testing it on my local machine. So, for this purpose, I spin up polkadot relay chain with two validators and connect one collator of my ...
3
votes
2
answers
156
views
Is it possible to specify parachains in the Polkadot chain specification for local testing?
I noticed that the chain specification for Polkadot contains a paras field that is empty. I have not been able to find any documentation on what it is used for or if I can specify parachains there to ...
4
votes
1
answer
76
views
Should I set validator or rpc nodes in chainspec bootnodes?
I am adding bootnodes to chainspecs and I wonder if I should prefer setting validator nodes or rpc nodes in the bootnodes list. They are all connected with p2p, but is there a reason to privilege some ...
1
vote
1
answer
88
views
How to start a GRANDPA blockchain without any initial voters?
I've tried modifying the repository so initial voters for the grandpa pallet. In doing so, I noticed there are many checks to prevent that modification.
The reason why we do not want any initial ...
2
votes
1
answer
40
views
Error generating Raw Chainspec from Plain Chainspec in Substrate
I am trying to generate raw chain spec from plain chain spec, but it won't let me:
✗ ./target/release/node-template build-spec --chain plain-local-chainspec.json --raw > chain-spec.json
Error: ...
3
votes
1
answer
58
views
create a dev chainspec with specific test users
I'd like to use the Polkadot CLI to create a chainspec with specific user balances pre-seeded. I'd like to be able to do this for any of the dev runtimes.
In the case of the polkadot dev runtime, I ...
0
votes
1
answer
27
views
Node template based network runs with multiple peers using the same identity
I noticed some interesting behavior while running a local test net on my machine. I booted up a network between the default Alice and Bob accounts that are used in all the tutorials, and they ...
0
votes
2
answers
30
views
Should we generate chain spec only on corresponding servers?
This might be a weird question. We are preparing our parachain for Polkadot. We have deployed our parachain on testnet, which we have connected with Rococo.
We have generated chain specs for testnet ...
2
votes
0
answers
58
views
How do I use the Forks feature of the `ChainSpecExtension`?
I've read the rustdocs about ChainSpecExtensions. For example https://paritytech.github.io/substrate/master/sc_service/trait.ChainSpecExtension.html and also several related pages that you can find by ...
1
vote
1
answer
40
views
is there any api for get substrate api client verison?
all.
Currently sidecar owns a api "/node/version" for get polkadot node version.
But is there any api could return sidecar api version for us?
1
vote
1
answer
98
views
What are the meanings of `id` and `protocol_id`?
When we use ChainSpec::from_genesis, we need to pass some string to these fields.
And these fields are not documented. So, how do we deal with these fields?
3
votes
2
answers
349
views
Can we modify chain spec while running the node?
I have few questions related to chain spec. I should have asked them separately but they are related to each other.
Can we update chain spec json file on the fly while running the node? For example: ...
1
vote
1
answer
34
views
`assimilate_storage` not implemented for `ChainSpec`
I have a slightly custom chain spec that makes regular chain spec serializable with serde to/from JSON.
In the impl of sp_runtime::BuildStorage I just forward assimilate_storage call to the underlying ...
6
votes
2
answers
238
views
What is `codeSubstitutes` in the chain spec?
I have seen mention of codeSubstitutes in the chain spec before.
What is this? And when is it applicable?
1
vote
1
answer
42
views
tokenDecimals = 10 Causes Astronomical Fees - How To Change tokenDecimals On A Running Chain?
We have started a test chain with tokenDecimals = 10 in the chain spec JSON. The chain is running beautifully BUT fees are astronomical. For example, it takes 2.6 Billion to run for council. We are ...
1
vote
1
answer
129
views
Change session keys in new chain spec
Chain spec primary_chain is defined under node/src/chain_spec.rs
Steps to reproduce:
generate default chain spec for primary_chain
./collator build-spec --chain primary_chain > spec.json
Edit ...
2
votes
2
answers
352
views
How to configure chain specs for parachains and relay chain
I want to run two parachains (parachain A and parachain B) and a relay chain with two validators Alice and Bob.
I need to implement the use-case below:
For parachain A the chain spec is newSpec.json ...
0
votes
0
answers
57
views
How to debug chain_spec.rs?
I was trying to have a close look at how chain_spec.rs was constructed, and wanted to output to the console for debugging purposes, but was having some trouble executing print and log::info. So, I ...
2
votes
1
answer
291
views
When there is a new Chain Spec version how do we know where to add things?
We're updating our relay chain test and its time to create a chain spec.
When i generate a plain chain spec (from polkadot repo) it seems i still get some raw output:
./target/release/polkadot build-...
0
votes
1
answer
166
views
Do I need the chain specification file of Rococco testnet to run my local parachain node?
I followed Connect a local parachain tutorial and successfully run my local parachain node with this command:
./target/release/parachain-collator \
--alice \
--collator \
--force-authoring \
--chain ...
1
vote
1
answer
60
views
Where to find the path for my relay chain when starting a parachain?
I'm trying to use this code to start a parachain (from this tutorial):
./target/release/parachain-collator \
--alice \
--collator \
--force-authoring \
--chain rococo-local-parachain-2000-raw.json \
--...
0
votes
1
answer
47
views
./target/release/parachain-collator not found
Following this tutorial.
I'm trying to run this command in the substrate-parachain-template folder (found here):
./target/release/parachain-collator build-spec --disable-default-bootnode > rococo-...
3
votes
2
answers
183
views
automating the launch of bootnodes
We want to automate the launch of our bootnodes for our parachain. We generated a spec file with an IP address as well as an identity that are repeatable. We used the --node-key to get a repeatable ...
1
vote
0
answers
120
views
How to include evm chain decimals?
I tried frontier-node-template it's working fine with substrate part but showing less balance in metamask.
I used chainid and RPC it's showing 20 TEST instead of 20M Tokens
What's i am missing? How to ...
2
votes
1
answer
94
views
Raw specs not building, unknown field
While building the raw specs:
./target/release/kylin-collator build-spec --chain=rococo_democracy.json --raw --disable-default-bootnode > rococo_raw_democracy.json
I get
2022-07-08 16:00:00 ...