Skip to main content
6 votes
Accepted

How to properly set session keys for Relay and Parachain with custom keys

The Solution: After trying a lot of things, I've found from an RPC call that there's 7 keys needed for each Validator node. Those are, gran babe imon para asgn audi beef. And for each key-type there's ...
Alexandre Ribeiro's user avatar
6 votes

Relation between Collator and staking?

For a parachain to advance, the chain collators have to assemble blocks. The collators are people or entities that have some hardware. To motivate those collators to participate in block collation, ...
pepyakin's user avatar
  • 2,184
5 votes

How do relaychain, parachain, collators, validators work together

You might want to check out https://polkadot.network/blog/the-path-of-a-parachain-block/ I wrote it before most of the code was implemented, so some things are out of date (e.g., there are no ...
joepetrowski's user avatar
  • 2,955
4 votes
Accepted

Zombienet: Substrate-Parachain-Template ... How to write the Dockerfile?

I have pushed a new version of zombienet (v1.2.36) and created this demo repo substrate-parachain-template-zombienet from the parachain-template and I added two dockerfile options (one injecting the ...
pepoviola's user avatar
  • 792
4 votes
Accepted

Off-chain workers on parachain's validators

By "parachain's validator" do you mean the relay chain validator allocated to the parachain? If that's the case, the answer is no. Relay chain validators only run the block validation and ...
h4x3rotab's user avatar
  • 717
4 votes
Accepted

Pallets extrinsics not showing in a relay-chain/parachain setup

This was answered by Squirrel - they weren't showing up because Polkadot-JS was pointing at the relay chain, not the parachain.
rob's user avatar
  • 2,126
4 votes

Collator nodes are not working

The Parachain will not start producing blocks until you have reached the tip of the relay chain. Each Parachain block is build on a specific relay chain block and this currently requires that you ...
bkchr's user avatar
  • 11.6k
4 votes
Accepted

Can a parachain recover from a "block taking too long" error?

If this is just one transaction, you can restart the collators to get rid of the transaction. The transaction pool doesn't persist any transactions. But be aware that other nodes also may have the ...
bkchr's user avatar
  • 11.6k
4 votes
Accepted

How many collators should a new parachain have if it doesn't have much load on it?

I'd say you need at least 2 (to ensure some degree of decentralization). Having more or fewer nodes will not provide you with better performance, since performance is limited by the size of the block ...
andresvsm's user avatar
  • 1,114
3 votes
Accepted

How does a validator know that a given collator can author?

The relay chain validator can not know this and doesn't know this. It will accept any PoV and it should fail at validation if the author isn't the correct one. This is the job of the validation code ...
bkchr's user avatar
  • 11.6k
3 votes
Accepted

./target/release/parachain-collator not found

I think the name should be parachain-template-node.
AurevoirXavier's user avatar
  • 10.7k
3 votes

Relation between Collator and staking?

Expanding on the comment by @Squirrel: The relationship between Collators and Staking rewards is conditional to whether that was a parachain design decision in the first place. Staking is not the only ...
Bernardo Rodrigues's user avatar
3 votes
Accepted

Bootnodes for Rococo

You might be using the wrong chain spec of Rococo. The one running was included in this PR: https://github.com/paritytech/polkadot/pull/5113/commits/e9a0947de83f8ced4402a6d2df54dd78d861369d
Alejandro Martínez's user avatar
3 votes
Accepted

Zombienet: test fails after changing parachain id

https://github.com/paritytech/polkadot/blob/decdbedea6d49b0604fee3241970a7ff383fe1db/parachain/test-parachains/adder/collator/src/main.rs#L87 If there is none provided via the CLI, the adder collator ...
drahnr's user avatar
  • 386
3 votes

Sync a parachain node quickly

Yes you can use snapshots, but I would recommend that you are using warp sync: your-parachain -- --sync warp-sync This will make the relay chain node use warp sync. This is much faster and should ...
bkchr's user avatar
  • 11.6k
3 votes
Accepted

How we can assign any name to our collator?

Depends on where you want to see the name. If you are speaking of telemetry you can do this via --name my-cool-collator. If you are speaking about on chain it depends on the configuration of the chain....
bkchr's user avatar
  • 11.6k
2 votes
Accepted

Zombienet: How to confirm if my parachain is producing blocks?

yes looks like the parachain is producing blocks. Also, I will fix the tail logs command asap and draft a new release. For reference, in this case should be kubectl logs -f collator01 -c collator01 -n ...
pepoviola's user avatar
  • 792
2 votes

How many collators need to be set on the parachain?

First congratulations for winning a slot to launch your parachain. Unlike validators, collators has nothing to do with security of the network, by being a parachain, the network is by default ...
Alex Bean's user avatar
  • 5,757
2 votes

Zombienet: how to test custom parachain collator - block height(producing blocks) test

looks like your parachain collator is based on cumulus (and not on one of the testnet like adder-collator), in that case you need to use the flag cumulus_based in the parachain definition. [relaychain]...
pepoviola's user avatar
  • 792
2 votes

Moonbeam Parachain staking

Without knowing much about the setup, this is how Delegator Eve ends up getting a reward, when a candidate Alice creates a block: To receive a reward, the following parameters are important: ...
nbaztec's user avatar
  • 197
2 votes
Accepted

Relay chain argument error: Invalid input: Error parsing spec file: unknown field `relay_chain` at line 75 column 1

you need to use the relay chain spec in --chain <relay chain raw chain spec> \, for example the one created for rococo-local with the command polkadot build-spec --chain rococo-local --disable-...
pepoviola's user avatar
  • 792
2 votes

What is relaychain validator spec & collator spec

I think first of all you have to understand the difference between collators and validators. Here is the Collator and Validators definitions on the Polkadot Wiki. In a few words, the nodes which are ...
Alex Bean's user avatar
  • 5,757
2 votes
Accepted

How to use command line to register Parachain locally

Basically, I keep in mind that everything I do from frontend is just some calls to chain. Even the actual command might get complicated depending on abstraction of what we trying to do but you just ...
Sudip Ghimire's user avatar
2 votes

Where to find the path for my relay chain when starting a parachain?

Check the previous section. The tutorial is using this spec. You could download this directly. Or, build it yourself: git clone https://github.com/paritytech/polkadot.git && cd polkadot cargo ...
AurevoirXavier's user avatar
  • 10.7k
2 votes
Accepted

Migrating from short-term to long-term slot on Rococo

I think your bootnodes are still running in the old version. So, when the new nodes connect to the bootnodes, they will report 'different genesis'. You could: stop 3026 and update all nodes to 2119 ...
AurevoirXavier's user avatar
  • 10.7k
2 votes
Accepted

Are there any incentives for collators?

It depends on the chain. It's totally up to you. On parachain-template, the system will share some tx fee with collators. https://github.com/substrate-developer-hub/substrate-parachain-template/blob/...
AurevoirXavier's user avatar
  • 10.7k
2 votes

How can I connect my old Parachain to my new Relaychain?

Of course, this won't work. export-state will build a new chain spec upon the existing data. The block number will start from 0. You can check the state_root and parent_hash in the new head data. They ...
AurevoirXavier's user avatar
  • 10.7k
2 votes

How to run a collator node for a parachain in Docker?

i went the same approach, small VMs with docker or podman installed then spin up the container using the docker-compose. Additionally i have the full node that is reverse_proxied with TLS Here is the ...
woss's user avatar
  • 160
2 votes
Accepted

Started getting: Aura pallet "Slot must increase" Error on running collator

Problem I stumbled upon the same issue yesterday and it turns out it has to do with a missing configuration for async backing on the parachain side. Rococo has async backing enabled and it needs some ...
Valentin Fernandez's user avatar
2 votes

How to add session keys for the collators set as invulnerables are in the nodes?

Add these flags to your node. Remember to remove the flags after the setup if your node is running in the public network. --rpc-methods unsafe and --unsafe-rpc-external.
AurevoirXavier's user avatar
  • 10.7k

Only top scored, non community-wiki answers of a minimum length are eligible