Questions tagged [cumulus]

Questions about the library used to convert a Substrate chain to a Polkadot Parachain.

Filter by
Sorted by
Tagged with
1 vote
1 answer
20 views

What is a concrete use case for cumulus's ability to return custom head data

This question is about cumulus PR https://github.com/paritytech/cumulus/pull/825. What is an example of when I would want to use custom head data. The PR description itself says: This can be for ...
JoshOrndorff's user avatar
  • 1,115
3 votes
1 answer
44 views

Node panics on restart after warp synced with both relay and parachain

We are observing the following panic for a parachain node that is warp synced fully on both sides when we try to restart the node: Thread 'main' panicked at 'route from finalized to leaf should be ...
Alex Sed's user avatar
  • 545
1 vote
1 answer
17 views

How many collators are selected at a time or we can say same block height to authorise a parachain block?

"I'm trying to understand the mechanics of parachain block authorization in blockchain networks like Polkadot and similar multi-chain systems. Specifically, I'd like to know: How many collators ...
UPENDRA SINGH's user avatar
1 vote
2 answers
141 views

Why Substrate, Cumulus and Polkadot repositories are going to be merged into a mono-repo?

It might not be the best place to ask this question, but I'm not sure there are other place, especially since others could be interested in the answer. Why do the 3 repositories (Cumulus, Substrate ...
Cromm's user avatar
  • 321
1 vote
1 answer
26 views

When sending Transact XCM Instruction, how to specify the pallet which contains the extrinsic to execute on target parachain?

When sending Transact XCM Instruction from parachain A, how do I specify (or how does the xcm-executor know) the pallet / pallet id on the target Parachain B which contains the extrinsic to be ...
Neo's user avatar
  • 283
2 votes
1 answer
36 views

Added ROC token on local Rococo account created using cumulus

I have Alice, bob and so on accounts created by cumulus itself. However, these account's have only 1 MUnit and I want to add more of them. I already tried !drip in faucet but that account is not added ...
Yaser Ali's user avatar
5 votes
1 answer
129 views

How to make a parachain runtime upgrade

I´m trying to make a parachain runtime upgrade without a migration, as a way to understand the process before trying with a migration. I´m using version 0.9.40 of polkadot for the relay chain and the ...
Xavier's user avatar
  • 395
6 votes
1 answer
82 views

What prevents a replay attack in XCM?

I've been looking into Cumulus SDK's parachain and XCM handling functions in XcmpQueue to handle XCM protocol functions such as send_xcm(). It seems by default, messages are not signed when sent. If ...
Maxwell's user avatar
  • 91
3 votes
1 answer
46 views

What prevents a malicious user to spam large XCM messages?

I've been looking into Cumulus SDK's parachain and XCM handling functions in XcmpQueue to handle XCM protocol functions such as sending an XCM message with send_xcm(). I noticed that there's a message ...
Maxwell's user avatar
  • 91
5 votes
2 answers
153 views

How does a parachain collator reliably know which parachain block (candidate recipt) got included on the relaychain to build the next block on?

I understand the entire path of a parachain block upto and including its candidateReciept being "included" on the relaychain, and its erasure coded PoVs being available with the relaychain ...
Shoeb Siddiqui's user avatar
4 votes
1 answer
58 views

Is there any constrain forced on Parachains for block authoring logic?

I am reading Cumulus PDK and Parachain documentations, and looking forward to converting our project to a parachain and join the Polkadot ecosystem. However, I am confused regarding the parachain ...
Yeou's user avatar
  • 219
3 votes
1 answer
84 views

`MAXIMUM_BLOCK_WEIGHT` between solo chain and para chain

From Substrate: https://github.dev/paritytech/substrate/blob/68d00e2d5132ef32e564e0320e89dfac57e1c46e/bin/node/runtime/src/lib.rs#L179 /// We allow for 2 seconds of compute with a 6 second average ...
boundless-forest's user avatar
1 vote
0 answers
32 views

Compiling cumulus v0.9.36 with --no-default-features

When attempting to compile cumulus on branch polkadot-v0.9.36 while disabling standard features, this error occurs: nologik@nologik-laptop dkg-substrate % cargo check --workspace --no-default-features ...
Thomas Braun's user avatar
2 votes
1 answer
28 views

How to get the call `authorize_upgrade` from `cumulus_pallet_parachain_system` inside another pallet?

I would like to schedule the dispatch call authorize_upgrade inside a custom pallet. For this I need the call enum variant of the cumulus_pallet_parachain_system pallet. How can I get this? Via the ...
Chralt's user avatar
  • 503
1 vote
1 answer
27 views

Build StorageProof for Benchmarks

Having some issues in fabricating a realistic StorageProof in substrate benchmarks. I can't use std and most examples are using std in tests via sp_state_machine. Currently, I've hard coded the (root, ...
nbaztec's user avatar
  • 197
2 votes
1 answer
33 views

error: could not compile `sc-network` when compiling my parachain node in v0.9.32

I'm compiling using the v0.9.32, any hint or solution? error[E0433]: failed to resolve: could not find `derive_prelude` in `swarm` --> /home/amrm/.cargo/git/checkouts/substrate-7e08433d4c370a21/...
Alexandre Ribeiro's user avatar
2 votes
1 answer
117 views

Offchain Worker Not Initializing - Cumulus Parachain Template

I am observing unexpected behavior with the Cumulus Parachain Template. Our pallet uses off-chain workers (OCW), and the functionality successfully runs when we attach it to the Substrate Node ...
Brendan's user avatar
  • 65
2 votes
1 answer
197 views

How to run parachain node in Docker?

I'm trying to run a Statemint node using the parity/polkadot-parachain docker image. However, I get this error: docker run --rm -it --entrypoint bash parity/polkadot-parachain polkadot-parachain --...
joepetrowski's user avatar
  • 2,925
1 vote
1 answer
51 views

How to add smart contracts support in parachain?

I am using Cumulus SDK for my parachain. Works well, but I need to be able to upload smart contracts into my parachain. How can I do this, Cumulus polkadot-parachain does not have smart contracts.
hgminerva's user avatar
  • 467
8 votes
1 answer
177 views

How are the costs of XCM messages designed?

after playing with the Substrate Cumulus Parachain Template and the ping-pallet to get an idea of how to use XCM, I built a local Rococo testnet connected to two parachains. In my code, at some point, ...
lucgerrits's user avatar
2 votes
1 answer
31 views

Issue building polkadot-parachain binary

I can't quite figure out what I am doing wrong so any help is appreciated. git clone --depth 1 --branch polkadot-v0.9.28 https://github.com/paritytech/cumulus.git cd cumulus cargo build --release --...
rh00's user avatar
  • 33
5 votes
1 answer
135 views

sp_trie::recorder::Recorder does not live long enough when upgrading para-chain project from polkadot-v0.9.28 to polkadot-v0.9.29

I was upgrading a para chain from polkadot version 0.9.28 to v0.9.29 when I encountered a few suspicious looking build errors originating from deep inside substrate. To eliminate the risk of some ...
Simson's user avatar
  • 1,110
0 votes
1 answer
36 views

trait `parity_util_mem::malloc_size::MallocSizeOf` is not implemented for `unchecked_extrinsic::UncheckedExtrinsic<Address, Call, Signature, Extra>`

I was trying adding Frontier as a dependency to my parachain project... After fixing a few errors and adding UncheckedExtrinsic & CheckedExtrinsic: pub type UncheckedExtrinsic = ...
Russo's user avatar
  • 1,193
0 votes
1 answer
38 views

error: failed to select a version for `parity-db`

I was trying to add Frontier as a dependency of my parachain(Substrate Cumulus based) project... $ cargo build -r Updating git repository `https://github.com/PNetwork/frontier` Updating ...
Russo's user avatar
  • 1,193
1 vote
1 answer
77 views

How to calculate weight on cumulus

I am a bit confused about this. If I have a pr on Substrate that requires a companion on Cumulus that adds to the weight file for a given pallet, how do I calculate the weight? I can run the benchmark....
Szegoo's user avatar
  • 603
1 vote
1 answer
42 views

Cumulus extrinsic weight

Are the benchmarks run on the same machine in the cumulus repository as the ones in the substrate? That is, is the weight in weights.rs files the same in these two repositories? Edit: The weights in ...
Szegoo's user avatar
  • 603
3 votes
1 answer
107 views

Pending Extrinsic not executed on block producing parachain

I have followed the tutorial and have reached the step where parachain is now producing and finalising block with a local relay chain. Transactions on chain and DMP (teleport asset) all works well. I ...
whalelephant's user avatar
0 votes
1 answer
142 views

Sending assets from parachain to relaychain resulting in asset not found

I am trying to send assets from parachain to relaychain from polkadotXcm extrinsic reserveTransferAssets and teleportAssets in polkadotjs app, but it is giving me Asset Not Found error, I am not sure ...
MUHAMMAD ZOAIB's user avatar
2 votes
1 answer
97 views

parachain-system can not get ParachainInherentData After runtime upgrade

Before this setCode upgrade, our parachain works well. After setCode upgrade, we get the following error log. Jun 02 09:39:36 Parami-AWS-SFO-DANA-01 parami[490]: 2022-06-02 09:39:36 ⚠️ ParachainSystem ...
ironman_ch_parami's user avatar
2 votes
1 answer
18 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'...
Gabe's user avatar
  • 115
5 votes
1 answer
47 views

What is the current state of Swappable Consensus and Re-Genesis

I've found these two open issues: Re-Genesis #7458 Swappable Consensus #1304 and would be interested if there is more practical guidance on an example basis?
BenJamWhite's user avatar
1 vote
1 answer
53 views

Why is the collator node producing and finalizing blocks at such a fast rate?

I am reading the Cumulus docs on running a node: https://github.com/paritytech/cumulus#build--launch-a-node Why is it that when I run: ./target/release/polkadot-collator --tmp --chain westmint ...
Bruno's user avatar
  • 8,130
2 votes
2 answers
67 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 ...
Fredo's user avatar
  • 21
5 votes
1 answer
243 views

How to deploy a parachain node and connect it to an existing relay chain node?

I deployed a relay chain node using the provided docker container: docker run \ --detach \ --name=polkadot \ --volume="$(pwd)/data:/data" \ --network=host \ --entrypoint=...
Rtsne42's user avatar
  • 379
7 votes
1 answer
181 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
  • 733
2 votes
1 answer
184 views

How many collators of a registered parachain must be synchronised with the Rococo relay chain for that parachain to generate and finalize blocks?

I want to determine the minimum amount of collators that a specific parachain that is registered on the Rococo network must have running in order for them to generate and finalize blocks once they ...
Luke Schoen's user avatar
  • 2,292
-1 votes
1 answer
156 views

XCM message transfer failed. relaychain report `Error: Barrier`

When I was doing cross-chain messaging (parallel chain A to parallel chain B), parallel chain A sent an XCM message (successfully). After receiving the message, the relay chain was supposed to send it ...
99kies's user avatar
  • 733
6 votes
2 answers
106 views

How to deregister a parathread?

If I want to de register a parathread I have previously registered, which steps should I follow ? What happens with the deposit ?
Alejandro Martínez's user avatar
4 votes
1 answer
51 views

how to specify the node's telemetry name for the relay chain when running a parachain node

when running a parachain, we can specify arguments for the relay chain, by adding a double-dash (--) separator between parachain and relay chain arguments, like so: $ calamari \ --name '🦑 marmara'...
grenade's user avatar
  • 456
8 votes
3 answers
189 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,144
-3 votes
1 answer
41 views

function or associated item not found in `parachain_info::Pallet<Runtime>`

I referred to parachain_info normally, but couldn't call his get method 717 | Parachain(ParachainInfo::get().into()) | ^^^ function or ...
99kies's user avatar
  • 733
9 votes
1 answer
128 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
2 answers
196 views

How do I connect my parachain to Rococo?

I have completed the Cumulus tutorial and tested my parachain on rococo-local to work as expected. I would like to connect to the public testnet, but I don't have sudo capabilities to add my parachain....
Nuke's user avatar
  • 1,822
7 votes
1 answer
203 views

Docker and Substrate with Apple Silicon/M1 Chips

Getting qemu errors when trying to build cumulus/polkadot on the container with the official image FROM docker.io/paritytech/ci-linux:production as builder qemu-x86_64: could not open '/lib64/ld-linux-...
Sam Elamin's user avatar
  • 1,203
15 votes
1 answer
191 views

What is Cumulus?

How does Cumulus relate to Polkadot? What is the difference between the two? Can I launch a chain without Cumulus? Are there any good documentation around the interactions between the two?
Sam Elamin's user avatar
  • 1,203