Questions tagged [parachain]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
4 views

Parachain not syncing with peers

An instance is already running a parachain collator node and is producing block. Is collating: yes [Relaychain] 🏷 Local node identity is: 12D3KooWLhkaoFSGV2JfXea1BGTEAv2R5PE4v2b1nHZMo1ZGtXDG [...
0 votes
0 answers
5 views

Problem with converting a solo chain to a parachain in Substrate

I am trying to convert my solo chain to parachain but I am facing some trouble. First, I ran parachain template as well as the relaychain template of Polkadot and it worked fine. Next, I just copied ...
0 votes
1 answer
17 views

I created a motion and want to know when code will be executed?

I created a motion and want to know when code will be executed? When all voters voted for motion and someone execute "close" transaction. Will it be executed immediately?
  • 31
0 votes
1 answer
3 views

Precompile error.. main runtime: panicked at 'Digest item must match that calculated,'

I was adding a new precompile function to my parachain, then when I ran my parachain and invoked one of the precompile functions, I got this error from one of the polkadot validators: Relaychain ...
  • 737
1 vote
2 answers
49 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 ...
  • 31
1 vote
1 answer
33 views

Is there anywhere simple parachain runtime example with XCM reserved transfer functionality from relay chain to parachain and back?

I wonder if there is some example of (parachain)runtime with xcm-pallet and orml-xtokens configuration for education purpose.
  • 31
0 votes
1 answer
12 views

duplicate lang item in crate std (which ansi_term depends on): panic_impl - Cannot use dependency

I was trying to use this ansi_term dependency in my project/precompiles/utils/src/lib.rs. Here is my file structure: my_parachain/ ├── ... └──precompiles/utils ├── macro ├── src/lib.rs └...
  • 737
0 votes
2 answers
36 views

How to open HRMP with Rococo chain?

hrmp.hrmpInitOpenChannel( recipient: 3000 //the other parachain you want to open the channel with proposedMaxCapacity: 1000 // specifies how many messages can be in ...
  • 31
0 votes
1 answer
33 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 ...
  • 737
0 votes
1 answer
12 views

How can i migrate storage [duplicate]

I am writing a parachain for polkadot and i should solve one problem: how to migrate storage from solo-chain of the current blockchain to parachain? E.g. account and their balances and so on.
0 votes
1 answer
25 views

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

And I learned about how to wrap a pallet to make a precompile for Ethereum users to call those pallet functions ... see the video at https://www.youtube.com/watch?v=V9KfvhoqLJ4&t=1004s (time = 01:...
  • 737
0 votes
2 answers
41 views

Where does initial ALICE account balance come from? From development_config() or local_testnet_config() in chain_spec.rs?

Every time when I start my parachain, I see Alice, Bob, Charlie, Dave,... etc and each of them has 1.1529 MUNIT on Polkadot.js.org's Accounts -> Accounts -> My Account page. How does Polkadot.js....
  • 737
1 vote
1 answer
21 views

How to set decimal points on Polkadot.js.org account balances for parachain

Every time when I start my parachain, I see Bob, Charlie, Dave,... etc and each of them has 1.1529 MUNIT on Polkadot.js.org's Accounts -> Accounts -> My Account page. But how does Polkadot.js....
  • 737
1 vote
1 answer
13 views

how to set a name to newly generated keys at relay_chain & parachain_template for v0.9.28

I was looking for an option to set a name for keys in both relay_chain & parachain_template For that, I was trying to generate new keys from relay_chain & parachain_template of v0.9.28 where I ...
0 votes
1 answer
21 views

How to add charlie node to local relay-chain?

Iam having two files rococo_custom_2_plain.json What does beefy means? What s the difference b/w alice vs alice_stash & bob vs bob-stash ? From the above image how can i able to step up for new ...
3 votes
1 answer
27 views

How do i verify total token mint and total token reserved are the same after a transfer between kusama parachains?

Scenario: Transfer token A from parachain_1 to parachain_2 I can verify the amount of token A issued on parachain_2 by looking at token A's total issuance on parachain_2 but how can i find the total ...
  • 31
2 votes
1 answer
16 views

What happens if `on_runtime_upgrade` during migration fails?

In parachain context, imagine we have declared a migration within type Executvie where we want to migrate some state from pallet A to pallet B in on_runtime_upgrade. In the new wasm the pallet A gets ...
  • 141
2 votes
2 answers
55 views

Parachain lease extension: Swap ParaID as well

When swapping two parachain slots as described in the polkadot wiki, is it also possible to swap the ParaID, for example to keep the old ParaID and thus avoid issues in regards to XCM when extending ...
  • 235
3 votes
1 answer
74 views

Best Decentralised Storage for parachain?

Can anyone please explain what is the best decentralized storage protocol for storing pdf/images data on Polkadot parachain? Actually, I gone through filecoin, Crust and Cess. Now I'm little confused ...
0 votes
0 answers
15 views

Are messages on parachains buffered on the network differently than they are in standalone environments?

We are adding custom networking/gossip logic to our codebase to handle other off-chain protocols over the gossip network. We experience reliability issues in the parachain environment that are both ...
3 votes
3 answers
203 views

Can I access storage of relay chain pallet from my parachain?

For eg: I want to get the balance of an account in Polkadot before I can execute the extrinsic in my parachain. Is it possible to do so?
  • 135
1 vote
1 answer
25 views

Safe to mutate in `pre_dispatch`/`validate`?

Is it safe to do a mutation from within a SignedExtension for some pallet-specific storage items while validating a transaction? If not, what could go wrong, and why? One thing that could go wrong is ...
  • 122
4 votes
1 answer
216 views

How do you burn transaction fees?

For a transaction fee implementation, i would like to burn 40% of transaction fees, send 30% to treasury and 30% to collators. Which pallet do can i use to do this?
3 votes
1 answer
91 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 ...
0 votes
0 answers
19 views

Does setBalance always overwrite?

We are uploading balances to a parachain. And there are some errors, so we would like to overwrite all ~20k balances. Is setBalance safe enough to overwrite, or is there a cleaner way such as reaping ...
0 votes
1 answer
35 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 ...
  • 3
1 vote
1 answer
65 views

How to judge whether the relaychain of a parachain is polkadot or kusama or westend? [closed]

Is it possible to query through state storage or rpc?
0 votes
1 answer
41 views

collator nodes are not working

I recently got a parachain ie, 4058 via subport issues request form When i was starting my parachain-collator-template with the following command ./target/release/parachain-collator --bob --collator ...
1 vote
0 answers
18 views

How is exchange rate determined in the case of an InterBTC failed redeem?

The interlay docs state: If Vaults fail to behave according to protocol rules, they face punishment through liquidation of collateral - specifically, if a Vault fails to execute a redeem on time or ...
  • 179
2 votes
1 answer
41 views

What is the best way to iteratively develop a XCM pallet?

Currently I have a local relay Rococo chain with 2 parachains (forked from the parachain template). I want to develop an XCM pallet that calls contract on another chain. cumulus-ping is working. ...
0 votes
1 answer
32 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/...
  • 737
0 votes
0 answers
9 views

Error upgrading parachain on Kusama: `parachainSystem.ProhibitedByPolkadot`

As a sudo of a parachain on Kusama, i am making the first runtime upgrade. Initially, i made the upgrade as a sudo unchecked weight and setCode without checks. The transaction looked successful it ...
0 votes
1 answer
19 views

the trait bound `Event: From<pallet_base_fee::Event>` is not satisfied

I was trying to add Frontier template into my substrate-parachain-template project... when I added this code below in runtime/src/lib.rs: impl pallet_base_fee::Config for Runtime { type Event = ...
  • 737
0 votes
1 answer
50 views

How to start a Parachain on Rococo Testnet

I would like have a step by step process to get block production started with a parachain on Rococo testnet.
0 votes
1 answer
10 views

How to set FeeCalculator value to use BaseFee or FixedGasPrice in pallet_evm config?

I was trying to add Frontier into my parachain as a dependency... then I got this error Compiling parachain-template-runtime v0.1.0 (/mnt/sda3/polkadot/substrate-parachain-template-evm/runtime) ...
  • 737
1 vote
1 answer
16 views

Extend parachain lease on local testnet

I have a local testnet running and it works until the first lease period is up. Once the first lease period finishes the chain stops producing blocks. I am looking for an easy way to submit some ...
0 votes
0 answers
15 views

how to get type registry for substrate v4.0.0 parachain?

so i have a parachain upgraded to substrate 4.0.0 and i need the type registry of this chain in order to work with subscan-essentials normally with substrate-node-template subscan-essentials work ...
0 votes
1 answer
14 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 = ...
  • 737
1 vote
1 answer
26 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
24 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 ...
  • 737
0 votes
1 answer
27 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-...
1 vote
1 answer
37 views

Error with block built on XXX: Import failed: Unexpected epoch change

I'm trying to prepare a local parachain testnet. However, when I run two nodes at the same time, although the two nodes recognise each other no new blocks are added and I get this error: Error with ...
0 votes
2 answers
53 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 ...
0 votes
1 answer
43 views

Runtime panic when teleporting dot from relay to parachain locally

I'm trying to enforce a "same native token" rule for the relay and all future parachains in my local environment. For this, I must first configure my parachain to accept teleports from a ...
3 votes
1 answer
45 views

How to integration-test a parachain

Parachains can conveniently be tested locally with polkadot-launch to ensure a specific runtime release will produce blocks and perform e2e tests. Is there an example of how to do these kinds of tests ...
  • 373
1 vote
0 answers
10 views

How do i know that from which parachain/app, a particular transaction belongs/coming from? (based on below informatino)

Looking at transaction information i want to know from which parachain it's coming ex : app.parallel.finance, astar, kapex etc etc. { specVersion: "", transactionVersion: "", ...
  • 111
1 vote
1 answer
60 views

submit transaction to pool failed: Pool(TemporarilyBanned)

When I tried to deploy an Ethereum smart contract to my parachain's Frontier EVM, I got this error: running deployment script... owner: 0x6Be02d1d3665660d22FF9624b7BE0551ee1Ac91b user1: ...
  • 737
1 vote
2 answers
43 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 ...
  • 737
1 vote
1 answer
41 views

ProviderError: submit transaction to pool failed: Pool(InvalidTransaction(InvalidTransaction::Payment))

Hi I am trying to use Hardhat to deploy Ethereum smart contracts to my parachain with Frontier EVM inside. The Hardhat uses my own Typescript file to deploy contracts like this one: https://hardhat....
  • 737
1 vote
2 answers
56 views

How to use command line to register Parachain locally

Regarding this tutorial "Connect a local parachain": https://docs.substrate.io/tutorials/connect-other-chains/local-parachain/, it requires using GUI in a browser to do Parachain ...
  • 737