Skip to main content

Questions tagged [parachain]

Questions about blockchains connected to relay chains like Polkadot or Kusama.

Filter by
Sorted by
Tagged with
10 votes
5 answers
955 views

how to calculate sovereignAccount for parachain?

are there any methods or tools? such as parachain id is 1000. how to get this parachain's sovereignAccount
linus NG's user avatar
  • 311
7 votes
2 answers
1k views

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

The Goal: Deploying a Relay Chain with Custom Validator Keys, that a Parachain can start collation successfully. The Issue: Using the key subcommand in the Relay, I wasn't able to properly insert the ...
Alexandre Ribeiro's user avatar
1 vote
2 answers
166 views

Do not want to clean up the data of the independent chain, how to seamlessly connect to the parachain?

And, can I continue to run independently after my parachain goes offline and I leave the relaychain?
99kies's user avatar
  • 753
7 votes
1 answer
371 views

Our parachain doesn't produce blocks [checklist]

It is a common problem that the launch of parachains on a live relay chain is tricky and hard to debug because relaychain validator logs are not easily available. What can go wrong with parachain ...
brenzi's user avatar
  • 563
7 votes
1 answer
198 views

My parachain has not been able to issue a block after submitting the upgrade transaction

network: rococo live this is my parachain log.
99kies's user avatar
  • 753
6 votes
1 answer
228 views

How can a project prolong a parachain slot lease in Kusama?

I believe, some of the Kusama based projects have done that already. What exactly did they do and what are the options if a project wants to prolong or renew the parachain slot?
Peter Streelman's user avatar
3 votes
1 answer
159 views

Missing `successful_origin` in implementation when running runtime-benchmarks

With a fresh substrate-parachain-template I ran cargo build --features runtime-benchmarks I got errors from a deep dependency in pallet_society, which doesn't seem relevant to the parachain-template's ...
Ramsey - Decentration's user avatar
2 votes
1 answer
286 views

Best practices for generating and monitoring transactions

So I am building a service that will be creating high amount of transactions on different substrate base chains. The infrastructure I have in mind is having microservices that will generate ...
Tadej Vengust's user avatar
16 votes
1 answer
360 views

What does PoV stand for?

I keep seeing this everywhere. PoVBlock, etc. Can someone share what it stands for and maybe include a link where we can learn more?
Jake Hemmerle's user avatar
13 votes
2 answers
307 views

What is the proper way of executing a runtime upgrade on a parachain?

I would like to upgrade my parachain. What is the proper way of executing a runtime upgrade on a parachain? Which RPC method to call? Should this be applied to collators or rpc-nodes?
Alex's user avatar
  • 304
7 votes
1 answer
116 views

From a parachain, how to get the current relay chain block number?

From a parachain, how to get the current relay chain block number? I would like to write a hook using the relay chain block as a trigger.
Timothée Delabrouille's user avatar
6 votes
2 answers
186 views

How can I get my parachain to produce blocks? (sanity checklist)

On launch of a parachain it can be a challenge to debug why a parachain cannot produce blocks. List answers as to what to look for and sanity checks for debugging a parachain that cannot produce ...
Ramsey - Decentration's user avatar
6 votes
2 answers
227 views

Barrier error during initiating HRMP channel with Rockmine on Rococo

I want to open HRMP channel with Rockmine on rococo. But I got the Barrier error and can't understand what is wrong with my request. This is my encoded call data ...
rust.dev's user avatar
  • 519
6 votes
1 answer
70 views

Provided next available para id is already registered

Background - I have relay chain setup that is able to connect to local rococo testnet, and I am trying to obtain and register unique para_id on Rococo testnet via the polkadotjs app. I have provided ...
Shivam Kushwaha's user avatar
5 votes
1 answer
198 views

Database corruption on syncing parachain to rococo [closed]

Syncing parachain to rococo generates the following error: 2022-04-20 16:47:13 [Relaychain] DB corrupted: Corruption: Corrupted compressed block contents: Snappy. Repair will be triggered on next ...
1x2454's user avatar
  • 150
3 votes
1 answer
137 views

Upgrade parachain without sudo

I have a parachain with no sudo pallet. However, in order to perform an upgrade, the first step authorize requires Root origin. As a workaround, I have tried to run ForceScheduleCodeUpgrade from the ...
magecnion's user avatar
  • 244
1 vote
2 answers
161 views

deploy solidity ethereum to parachain with ExhaustsResources error

I can deploy a few Ethereum smart contracts into my parachain via Hardhat. But those are only normal contracts. All the upgradeable contracts and ERC777 contract cannot be deployed with the ...
Russo's user avatar
  • 1,193
1 vote
2 answers
92 views

How to get the current weights of a chain for all extrinsics to verify all benchmarks has been integrated?

I have just ran benchmarks and updated all the weights of the pallets in my parachain... or have I? How can I verify that all my changes "bite"? Is there a way to check the weights of a ...
Simson's user avatar
  • 1,201
1 vote
2 answers
255 views

Failed to compile on Linux [closed]

In fact, I was able to compile successfully on MAC, but I had problems compiling on Linux. error: failed to run custom build command for `tikv-jemalloc-sys v0.4.3+5.2.1-patched.2` Caused by: ...
99kies's user avatar
  • 753
1 vote
2 answers
265 views

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

This question follows those questions below: Q1 Zombienet: how to test custom parachain collator - block height(producing blocks) test Q2 Zombienet: Substrate-Parachain-Template ... block height(block ...
Russo's user avatar
  • 1,193
0 votes
1 answer
206 views

How to add new collators on a running parachain?

I'm running a Relay Chain with 4 validators. And trying to add a new collator to a running parachain. Which I've changed the desiredCandidates from 0 to 2 in the Chain Specification file. And when I ...
Alexandre Ribeiro's user avatar
0 votes
1 answer
148 views

How to add Frontier code as a dependency to substrate-parachain-template based parachain?

Hi I was trying to add Frontier code to my substrate-parachain-template project. I was following JoshOrndorff's tutorial and his commits here https://github.com/PureStake/substrate-node-template/...
Russo's user avatar
  • 1,193
0 votes
1 answer
171 views

Zombienet: Substrate-Parachain-Template ... block height(block producing) test failed

Previously, I have already made a Rust docker image: FROM debian:latest RUN apt update && apt install -y git clang curl libssl-dev llvm libudev-dev procps vim make wget build-essential RUN ...
Russo's user avatar
  • 1,193
17 votes
4 answers
256 views

What is the best tutorial to convert a substrate-based standalone chain to a parachain?

What is the best tutorial to convert a substrate-based standalone chain to a parachain?
Songhua Hu's user avatar
13 votes
2 answers
166 views

Will asynchronous backing increase the available block weight?

The next big thing for Parachains is asynchronous backing. It will allow parachains to build blocks concurrently with the relay chain and hence bring back the block time from 12s to 6s. One other ...
Alexander Theißen's user avatar
12 votes
6 answers
380 views

Solo Substrate chains - are there any examples yet?

I understand that it is possible to use Substrate to run a solo chain, without attaching as a Parachain to a relay chain - are there any live projects running as Solo Substrate yet?
Mattias Petter Johansson's user avatar
10 votes
1 answer
149 views

How to reset a parachain with a new genesis on rococo?

I want to reset a parachain currently active on the rococo testnet. There is documentation on how to register a new parachain. But what do I need to do in order to restart an existing parachain? I ...
Alexander Theißen's user avatar
10 votes
1 answer
191 views

How do parachain crowdloan accounts work?

Each parachain has a crowdloan account when they conduct crowdloans for the purpose of winning a slot auction. How are these crowdloan accounts generated and does the parachain have the private keys ...
Keith Yeung's user avatar
  • 2,121
9 votes
2 answers
135 views

Non Fungible Token XCM transfer documentation

I am very interested in any documentation with examples of how to send NFTs from one parachain to another with XCM.
Sokrates's user avatar
  • 421
8 votes
3 answers
239 views

What is head data and how do I get it?

When registering a parachain on a relay-chain you need to provide something called head data (or also referred as genesis state) and wasm. What is this head data and how do I get that?
pepyakin's user avatar
  • 2,184
6 votes
3 answers
108 views

Deregistering my parathread using its manager account is not always possible

I have observed that not in every scenario the manager of the para is able to deregister the parathread. So I would like to gather here what are the scenarios where we can hit this, and their reasons.
Alejandro Martínez's user avatar
6 votes
1 answer
665 views

How can the Substrate staking pallet be used in a parachain?

Staking pallet allows a chain to elect validators/collators with respect to their stake. There are multiple ways in staking pallet to implement ElectionProvider (both on-chain and off-chain) which ...
Gautham J's user avatar
  • 116
5 votes
1 answer
344 views

Block times in parachain are twice as long as configured

We are configuring the block time to be 6 seconds in our parachain and yet in Polkadot apps it reliably creates blocks every 12 seconds. Is there something I'm missing here? The code we are using in ...
Drew Stone's user avatar
  • 1,194
5 votes
2 answers
560 views

How can I run an interBTC vault?

Interlay (interBTC) is a parachain that allows users to use their BTC on other parachains by locking up BTC in vaults, which, if I understood correctly act as a network of verifiers. How can I run an ...
Sacha Lansky's user avatar
  • 2,640
5 votes
1 answer
282 views

(Parachain) cannot create a runtime error=Other("cannot deserialize module: unknown Opcode(192)")

I was following the substrate SDK official documentation for building a parachain on the Polkadot blockchain, and in the connect a local parachain tutorial(https://docs.substrate.io/tutorials/build-a-...
Akansha Banerjee's user avatar
4 votes
2 answers
144 views

How to configure polkadot + parachain locally to validate parachain block each 6 sec?

I want to spin up parachain LOCALLY faster. each 6 sec. How to configure polkadot with parachain? I have seen this and this and this post So my zombienet contains polkadot(obviusly😊) and two ...
rust.dev's user avatar
  • 519
4 votes
1 answer
298 views

Parachain not producing blocks ? Error: Could not decode the head data

I try to start a parachain using the tutorial and don't want to use the polkadot-launch so I can fully understand the underlying structure. The relay chain works and I the parachain & relay chain ...
lucgerrits's user avatar
4 votes
1 answer
130 views

How do I recover quickly if the number of healthy nodes for my parachain reaches zero?

I'm particularly interested in the role of backups and state stored on disk in the recovery process. In terms of preparations, we are early enough in our project lifecycle to put in place whatever ...
beyond-code's user avatar
4 votes
1 answer
135 views

The given validation code was rejected by the PVF pre-checking vote

I'm running a local relay for testing, which is all working great. The issue comes in when joining a parachain to the network - I can get as far as submitting an upload for the genesis state and WASM. ...
Romulus10's user avatar
  • 121
3 votes
2 answers
113 views

how we can migrate the solochain data to the parachain?

If we currently have the live solochain and in future we need to go on parachain how we will migrate the data from the existing solochain to parachain.
Pankaj's user avatar
  • 2,021
3 votes
1 answer
155 views

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

We have a parachain testnet running on a local relaychain based on rococo v2. The Parachain is based on Cumulus (Polkadot and Substrate) v0.9.36 - so at the time of writing is the most up-to-date ...
T9b's user avatar
  • 468
3 votes
2 answers
119 views

error: `<C as TrieCacheProvider<H>>::Cache<'_>` does not live long enough

I'm adding ping pallet in the parachain and i'm facing this issue Can anyone guide me through this?
Ipsa Gupta's user avatar
3 votes
2 answers
254 views

How do relaychain, parachain, collators, validators work together

I always get confused and never got a clear picture of all these terms: parachain, relaychain, collators, validator, stand-alone node etc. I can't figure out a way to understand connecting all these ...
Sudip Ghimire's user avatar
3 votes
0 answers
64 views

How to get relay accounts, native accounts and contributed amounts from a Crowdloan campaign? [closed]

My team can run unit tests on our parachain crowdloan pallet. Now how can I get a list of relay accounts, native accounts and reward amounts used in my unit tests from a real life Crowdloan campaign ...
Russo's user avatar
  • 1,193
2 votes
3 answers
110 views

Zombienet: test fails after changing parachain id

Originally I had this network definition file: [relaychain] default_image = "docker.io/paritypr/polkadot-debug:master" default_command = "polkadot" default_args = [ "-...
Russo's user avatar
  • 1,193
2 votes
1 answer
137 views

How do I reset my parachain's state?

I am running Rococo local on my machine and my parachain stalled. I would like to reset the state of my parachain and restart my collator. How do I do this?
Bruno's user avatar
  • 8,315
2 votes
2 answers
243 views

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

previously I could run my tests including colander parachain with polkadot:v0.9.18 or polkadot-debug... my network definition file: [relaychain] default_image = "docker.io/parity/polkadot:v0.9.18&...
Russo's user avatar
  • 1,193
2 votes
1 answer
158 views

WeightLimitReached Error occured when executing ReserveTransferAssets with XCM

I'm testing the ReserveTransferAssets, but it didn't work well. When Trappist chain send XCM from statemine to base Parachain, WeightLimitReached and xcmpQueue.OverweightEnqueued error occurred. But I ...
andrun learn's user avatar
2 votes
1 answer
176 views

How to make gasless(EVM balance) transaction in Frontier EVM for certain Ethereum smart contract functions?

How is gasPrice determined in Frontier EVM? I found the following settings in the Frontier/template/src/runtime/lib.rs impl pallet_evm::Config for Runtime { type FeeCalculator = BaseFee; type ...
Russo's user avatar
  • 1,193
2 votes
1 answer
149 views

How to upgrade Frontier to use a specific Substrate version

The Substrate team(https://github.com/paritytech/substrate/) produces releases like polkadot-v0.9.25 every a few weeks, and my team needs to upgrade our parachain to follow those Substrate versions. ...
Russo's user avatar
  • 1,193