Questions tagged [parachain]
Questions about blockchains connected to relay chains like Polkadot or Kusama.
111
questions
1
vote
0
answers
7
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?
0
votes
0
answers
5
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 ...
1
vote
0
answers
12
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 ...
0
votes
0
answers
10
views
ERROR reports occur when parallelchain synchronize KSM blocks
2022-05-24 08:13:38.060 INFO main sc_service::builder: [Parachain] 📦 Highest known block at #0
2022-05-24 08:13:38.060 INFO tokio-runtime-worker substrate_prometheus_endpoint: [...
0
votes
0
answers
13
views
sudo authorizeUpgrade return invalid?
What is sudo invalid mean? This error happened when I did a parachain authorizeUpgrade. I had upgrade success many times in some way. But this is the first time I got this error.
Is it mean code ...
0
votes
0
answers
33
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 ...
1
vote
1
answer
25
views
Is there a link or guide on how to get a Sovereign Account Address?
I'm currently working on opening an HRMP Channel on Rococo with another parachain. In order to do this, I need to send an XCM to the relay chain. One of the items within this message requires a ...
1
vote
1
answer
17
views
What files do I need to make a docker image for running Zombienet tests?
I have built my parachain release.
Here are the files/folders I have inside my target/release:
11G .
5.9G ./deps
3.2G ./wbuild
1.6G ./build
134M ./parachain-collator
49M ./.fingerprint
...
0
votes
0
answers
14
views
Function or associated item cannot be called upon benchmarking
I’m trying to run benchmarks on the latest commit in this PR https://github.com/InvArch/InvArch-Node/pull/87 The pallet library pallet library is separate so the runtime depends on this latest commit ...
1
vote
0
answers
14
views
Offchain workers in parachain
On a parachain (Substrate polkadot-v0.9.20 branch), I am trying to trigger some offchain tasks using an offchain worker in my pallet, but the task is not triggered. I checked that the on_finalize hook ...
0
votes
1
answer
30
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&...
0
votes
3
answers
34
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 = [ "-...
0
votes
1
answer
17
views
Zombienet: How to confirm if my parachain is producing blocks?
I ran my Zombienet network(it is like a Docker + Kubernetes network)
[relaychain]
default_image = "docker.io/paritypr/polkadot-debug:master"
default_command = "polkadot"
...
1
vote
1
answer
10
views
Example of MockValidationDataInherentDataProvider usage
Is there any example of how to use MockValidationDataInherentDataProvider to run a parachain with mock validation? I've been looking all over and can't seem to find any documentation or example of it'...
1
vote
0
answers
34
views
Abnormal large delays between wasm-code getting stored and applied
We had a runtime upgrade on kusama-parachain recently (9050 -> 9060), where the parachain stalled for 20min. Eventually, it self healed, but I find it abnormal as I have never seen such a big delay ...
0
votes
1
answer
37
views
Optimistic parachain block finalization
Question
Is there some some way to configure a parachain to produce blocks in a way which
has high finalization rate (not PoA though)
predictable finalization rate, yielding a clear optimistic ...
1
vote
1
answer
53
views
Can we mint/burn Statemint assets on other parachains?
My goal is to create an interoperable NFT collection in the Polkadot native ecosystem and allow its holders to interact with it on a parachain's smart contract. In that smart contract, the holder can ...
1
vote
1
answer
18
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?
0
votes
1
answer
13
views
Cannot register parachain ID: System Extrinsic Failed: Bad Origin
I was following this tutorial all the way up to registering a parachain ID.
https://docs.substrate.io/tutorials/v3/cumulus/connect-parachain/#registration-transaction
My parachain is based on polkadot-...
1
vote
1
answer
33
views
What ways can parachains improve interoperability and increase trust using SPREE?
It appears to me that we find ourselves at a trade off between parachain state transition function (STF) generality vs trustless XCM interoperability. At the current point in time parachains can ...
0
votes
1
answer
16
views
Clarification on state_version and transaction_version change in Cumulus parachain template
I have some simple question. What state_version stands for, and when it should be changed?
As I can see, in Cumulus parachain template on polkadot-v0.9.18 tag the state_version was changed to 1. Also,...
0
votes
0
answers
19
views
How to check the state root based on proofs for a parachain
I'm trying to verify that a parachain's state root that I'm getting using the RPC connection is correct.
I'm going to use the result of the RPC call state_getReadProof.
The steps are following:
Call ...
1
vote
0
answers
15
views
Is there any "primary" DB in parachain network? [closed]
Given the following parachain network setup:
collator C0
collator C1
bootnode B0
C0 and C1 are initial collators that are specified in chain spec (invulnerables).
B0 is the sole bootnode in chain ...
1
vote
1
answer
53
views
What is the actual XCM way between parachains on Kusama?
I read about the XCM post and the answer by Joe here. Now I wonder right now what is the actual way that current parachains adopt to xcm assets. According to their "Trust level", I think ...
1
vote
1
answer
25
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?
2
votes
0
answers
13
views
How to properly use backed-up DBs for parachain recovery?
We are currently backing up our parachain DB on a daily base: /path/to/db/full/, I thought it can be used for recovery when the DB gets accidentally deleted/corrupted. But it seems that once the ...
1
vote
0
answers
19
views
General instructions after parachain block authoring is stuck [closed]
I'm wondering if there's any general instruction guidance when parachain block authoring is somehow stuck. I understand the relaychain network might need to do something to help parachain get out of ...
2
votes
0
answers
63
views
Parachain nodes become idle
The following nodes are Subsocial parachain nodes. We use polkadot-v0.9.16 as our dependencies version. Gonna upgrade soon, but we need to solve the collators issues before.
Occasionally some of the ...
1
vote
0
answers
22
views
Database corruption on syncing parachain to rococo
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 ...
3
votes
1
answer
50
views
+50
Could not find the header of the genesis block in the database!
I am trying to test a parachain, following this tutorial. /!\ The parachain is not the one in the tutorial, it is kabocha's parachain.
I have a working relay chain (setup like the tutorial), and two ...
1
vote
1
answer
28
views
Bootnodes for Rococo
After completing the cumulus tutorial, I'm trying to connect the parachain to Rococo. I have two questions
Do we need to run our own validator nodes for Rococo? (my understanding is that its not ...
1
vote
1
answer
24
views
How to add callback function after block validation?
I am currently developing a parachain, and I'd like to add some custom events after block validation and log block authors who produce invalid blocks.
I found that the trait ...
0
votes
0
answers
21
views
Performing auction on Rococo local - error after completed auction
I have been tried to perform crowdloan and auction on local Rococo, using this relay chain chainspec.
Steps:
Reserve paraid
Register parathread
Add crowdloan campaign for reserved paraid
sudo -> ...
4
votes
1
answer
46
views
Where and how is the information about a parachain block stored within the relay chain?
I'm reading the "parachain implementers guide" here and I understood that the parachain block journey ends when it is finally "approved" and included in the relay chain.
My ...
2
votes
1
answer
37
views
Run parachain as local regular chain
Working on a parachain, the executable that is build is a collator node. It will run both the parachain and the relay-chain nodes.
For pallet development (pure product, unrelated to the chain being a ...
2
votes
1
answer
34
views
What is the most straight forward/complete project i can work to master substrate?
Basically a project that would relay on all the nuts and bolts in the substrate toolset to understand more of where the ecosystem is going and how to work for companies like parity tech.
2
votes
1
answer
17
views
How to get total issuance through polkadot.js.org/apps?
Not sure if I can add any more detail to the question!
How to get total issuance through polkadot.js.org/apps ?
It would also be helpful to know the general way to access chain constants through ...
1
vote
1
answer
28
views
How to cancel a crowdloan before its ending block?
I want to cancel a crowdloan before its ending block and find there are crowdloan.refund and crowdloan.dissolve extrinsics.
Can I use crowdloan.refund or crowdloan.dissolve extrinsic to cancel a ...
0
votes
2
answers
28
views
Parachain config for Rococo public test network
How to config a locally tested parachain to connect it to the Rococo public test-network?
I mean on the startup phase (before the Rococo Slot Request Form), following the Cumulus tutorial: after ...
1
vote
1
answer
40
views
How to test parachain + Slot Auction + Crowdloan in Rococo chain?
My parachain's unit tests can run no problem.
I am aware of "Rococo Slot Request" from https://docs.substrate.io/tutorials/v3/cumulus/rococo/#request-your-parachain-slot
and in this section ...
1
vote
0
answers
30
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 ...
0
votes
2
answers
44
views
How does my parachain crowdloan pallet work with Slot Auction + Crowdfunding?
My team has got our parachain crowdloan pallet working, thanks to
PureStake & Moonbeam
According to Polkadot and Moonbeam's description of Crowdloans and example specs, I think there must be some ...
6
votes
1
answer
53
views
Parachain large migration best practices
We need to insert a lot of data to storage. In standalone version we can do it via System.SetStorage with sudo weight override. But in parachains this approach maybe can break our chain. What are the ...
3
votes
2
answers
32
views
Is there a way for a validator node to store relay chain db and parachain data in different partitions
Is there a way to tell the validator node to store db/full/parachains on a different partition/location. Or is it safe to rsync it to a folder on another partition and then simlink it for a live ...
1
vote
1
answer
52
views
How to get my own crowdloan contribution to a parachain which is already onboard?
I use api.derive.crowdloan.ownContributions to get my contribution amount to an already active crowdloan and it works. But to get the contribution on a parachain which has already leased a slot such ...
2
votes
1
answer
45
views
How to optimize the fees for cross-chain transfers
When we tested the cross-chain transfer, we found that the fee was a bit high. How to optimize various parameters to reduce the transfer fee
such as: parachain A(tokenA) <=> parachain B(tokenB), ...
6
votes
3
answers
43
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.
11
votes
2
answers
66
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 ...
11
votes
4
answers
101
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?
4
votes
0
answers
51
views
Why are parachain candidate blocks from only one collator being backed and added on-chain at a time when there are multiple collators?
Environment:
Test machine: 1x mac-m1-pro local
Relay chain (rococo-local): 2x relay chain nodes
Parachains: 2x collators (Alice and Bob)
Parachain consensus: aura
I started the network locally and ...