Questions tagged [polkadot]
Questions about the Polkadot Relay Chain
346
questions
0
votes
1
answer
9
views
I was trying to deploy my contract on rococo testnest and I was experiencing some problem
I was having this error when I was trying to deploy my ink smart contract in rococo:
StorageDepositLimitExhausted
More storage was created than allowed by the storage deposit limit.
What might be the ...
-1
votes
0
answers
18
views
How to use the golang decoder to parse extrinsics?
I use the jsonrpc chain_getBlock get the block information,but I do not know how to decode the extrinsics;
{
"jsonrpc": "2.0",
"result": {
"block&...
1
vote
1
answer
21
views
Why the two ways to get blockhash is not same?
why the two ways to get blockhash is not same ?
0
votes
0
answers
14
views
Bags-list pallet test case not running
I am using the polkadot version 0.9.36, I run test cases of all the pallets in the frame by using the cargo test command, every pallet test case is working fine but when I run the bags-list pallet ...
0
votes
1
answer
8
views
How getting on which validator a specific nominator was before the historyDepth?
I'm trying to rebuild part of my database thanks to events and extrinsics, i managed to get it partly all , but i'm stuck with this one :
How to know on which validator a nominator was ?
I tried to ...
0
votes
1
answer
18
views
Is there any way to get the validators signatures of the finalized blocks in substrate based chains?
I need the signatures of the validators who have signed on the produced and finalized blocks.
For example, In cosmos-SDK based blockchains blocks contains the signatures(and validators addresses) of ...
2
votes
1
answer
36
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 ...
0
votes
0
answers
31
views
Substrate run benchmarking error - 'setjmp.h' file not found
Working on substrate-node-template , When I run benchmark I get the below error. It says 'setjmp.h' file not found. I am working on Macbook pro
cargo build --release --features runtime-benchmarks
...
2
votes
1
answer
129
views
How to migrate from Kusama to Polkadot?
I want to migrate my production parachain from Kusama or Polkadot.
How can I achieve this?
0
votes
0
answers
11
views
Polkadot Raw data signing is not supported for hardware wallets Ledger
Raw data signing is not supported for hardware wallets Ledger.
https://polkadot.js.org/apps/#/signing
how to fix it?
1
vote
3
answers
33
views
Version Upgrade issue
I am running substrate on polkadot-v0.9.25, and I want to upgrade it to polkadot-v0.9.36, so I took the normal approach that has been suggested in many questions, that is to do a runtime upgrade and ...
0
votes
1
answer
14
views
Syncing a new node, prepopulate db with polkadot
When syncing a new node from scratch it takes several days just to transfer and validate the polkadot chain. Comparing two runs reveals there are no simulates at all with the sst files.
Is there an ...
1
vote
1
answer
33
views
how to add contract pallet into polkadot-v0.9.31
I want to add contract pallet into polkadot-v0.9.31, but there is no tutorial in [official documentation][1], and it seems that pallet-contracts-rpc-runtime-api not exists.
How can I add contract ...
1
vote
1
answer
38
views
Getting error after runtime upgrade
I am trying to upgrade the version of substrate on my running blockchain from version v0.9.25 to v0.9.36, everything is fine but after runtime upgrade my terminal shows this [869] 🏊♂️ Running ...
2
votes
2
answers
28
views
While executing contracts functions getting out of gas error
I have deployed a wasm smart contract on chain using version polkadot-v0.9.36, after deploying the contract when I tried to execute its function i got error out of gas as shown below.
When I tried ...
0
votes
1
answer
50
views
How to start a GRANDPA blockchain without any initial voters?
I've tried modifying the repository so initial voters for the grandpa pallet. In doing so, I noticed there are many checks to prevent that modification.
The reason why we do not want any initial ...
2
votes
1
answer
43
views
Implement utility.batch using @substrate/txwrapper-polkadot
I am trying to implement batch transactions alongside the normal balances.transfer. Because of several reasons (constructing transaction more than one stage and polkadot lib is not helping there) i am ...
1
vote
1
answer
26
views
Is there any storage for the blocks in blockchain?
I was working on migrating data from one blockchain to other blockchain. I have migrated much of my data. Now i was trying to migrate the blocks of the blockchain.I want to know that where is the ...
0
votes
1
answer
41
views
can we run MoonBeam as solo chain instead of Para chain
I have cloned the repo of MoonBeam and run the chain as a "Development chain" but the chain is not producing blocks. Are there any reference links which i can follow to remove dependency ...
0
votes
1
answer
14
views
Error generating Raw Chainspec from Plain Chainspec in Substrate
I am trying to generate raw chain spec from plain chain spec, but it won't let me:
✗ ./target/release/node-template build-spec --chain plain-local-chainspec.json --raw > chain-spec.json
Error: ...
1
vote
1
answer
118
views
Why unbonding period of polkdot is 28 era(28 days) and why not 27 eras or some other number?
I`m curious about whether 28 era is a particular number, why not 26 or 27 or some else?
0
votes
1
answer
25
views
How can I strict my extrinsic to be executed only by Multisig user?
I have an extrinsic, which can be executed only by sudo. I want it to be executed only by MultiSig user.
I couldn't find way to do this.
I can replace ensure_root(origin) with ensure_signed(origin) ...
1
vote
1
answer
24
views
Unified Accounts with POS
is there any repository who are implementing unified accounts with Proof of Stake (POS) consensus except moonbeam.
we want H160 type of account for both Substrate and EVM Transactions.
1
vote
0
answers
27
views
Fuzzing Polkdot produces Invalid Signature after chaos is injected
I'm using version 0.9.37-08b1c09ca46, across 4 Nodes - Alice, Bob, Charlie, Dave, in a local testnet environment. I have a period of network chaos applied, and then moments of stabilized 'happy' ...
2
votes
1
answer
53
views
Why does BuyExecution not support JIT fees in XCM v3?
The XCM v3 implementation of BuyExecution does not make use of the newly introduced JIT fees withdrawal. (e.g. used via take_fee here in ExportMessage)
Why is that?
0
votes
2
answers
35
views
@polkadot/util module issue
I got some error when using Polkadot{js} API. what's wrong?
should I update the version of package?
import { BN, BN_BILLION, BN_HUNDRED, BN_MILLION, BN_QUINTILL, bnToBn, bnToHex, bnToU8a, ...
1
vote
0
answers
20
views
Kusama/Polkadot (v0.9.37) is having memory-leak-like pattern on GCP VMs [closed]
We are using polkadot-v0.9.37 and we are experiencing some memory-leak-like issue on the polkadot/kusama nodes.
We also host polkadot/kusama nodes on other providers (for example AWS), but it did ...
2
votes
1
answer
57
views
Is there any way to convert an ss58 address to the 32 bytes pubkey?
I want to do this inside a precompile, so it is runtime and I don't have access to std.
1
vote
1
answer
19
views
How can we check the total_supply of EVM?
I have integrated pallet_evm in my blockchain? I want to check the total_supply of EVM, How could this be done.
2
votes
2
answers
104
views
Is there any way to convert an &str into an AccountId inside a substrate pallet?
Is there any way to convert an &str into an AccountId inside a substrate pallet?
I need this because a evm precompile is interactive with the pallet, and its sending the address (its already in ...
0
votes
0
answers
30
views
Error: Service(Other("Scale codec deserialization error: Future version (expected 1, found 2)"))
We are trying to start our own node using the official polkashot for polkadot. When I start the node it hangs for a while then I get the following error message: Error:
Service(Other("Scale codec ...
1
vote
1
answer
28
views
Command to insert keys in Polkadot Relay Chain and Parachain for Custom Validators in ChainSpec?
I have the keys separate in a file. I don't want to insert keys for polkadot js app for each node running the relay chain. Same for collator for parachain.
What is command to insert keys through CLI?
1
vote
2
answers
31
views
How to Start Parachain Node with disabled P2P?
Is there a way to start a parachain node in CI and instruct it through a binary flag not to sync with the relay chain? I think it would be the same to say I want the P2P functionality to be off. Thank ...
1
vote
1
answer
32
views
Error when add pallet-contracts in substrate : no matching package named `pallet-contracts-rpc-runtime-api` found location
i want to add pallet-contracts into substrate on branch but i faced errro .
Repository
i will tell you step by step what i did :
Step One : Add Depency Pallets
pallet-contracts = { version = "4.0....
0
votes
1
answer
66
views
How to get transaction hash from Storage?
I created my own Pallet to save Student certificates, then I am reading the Storage to retrieve the certificates that I have stored in BC using Plokadot.js, this is the code for read the certificate ...
0
votes
1
answer
23
views
How to premine DOT on a local private network (local devnet)
I'm setting up a local testnet with multiple nodes and would like to know if there is a way to premine DOT without using the UI
Here is a copy of my docker-compose from following the steps on https://...
2
votes
1
answer
104
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 ...
1
vote
1
answer
16
views
Public Tor dot Onion addresses for Polkadot, Kusama and Edgeware nodes
Hello Polkadot Ecosystem!
There are several public node operators, however, I was not able to find one that had support for .onion addresses. Public .onion nodes is something that has been in the ...
2
votes
1
answer
22
views
Distribution of nominated stake?
Does anyone happen to know without having to spend time on source searching:
A Polkadot nominator with stake N DOT nominates X validators. How the stake is distributed between them for the purpose of ...
0
votes
1
answer
58
views
How to implement a POC for a new consensus algorithm in substrate?
I am currently working on a substrate project that uses the PoA consensus algorithm. I would like to implement a POC for a new consensus algorithm. I have some experience with substrate but I'm new to ...
1
vote
1
answer
26
views
Why do you need a controller account for nomination?
Why do we need 2 account bond when we are nominating? What are the responsibilities/roles of both?
1
vote
2
answers
55
views
Security discussion with mnemonic in polkadot extension
Does the extension save mnemonic in the browser?
If yes, is it safe?
1
vote
1
answer
31
views
As a Nominator, if my stacking amount falls below the minimum DOT required will I cointinue getting rewards?
I bounded enough funds in order to be nominated. But the minum amount of DOT changes frequently. Will I loose the status of a nominator if my bonded amount falls below the threshold?
1
vote
1
answer
36
views
what affect the change of the minimum stake of a Nominator?
This number changes every day. What are the variables that affect that?
1
vote
1
answer
22
views
Is there any alternative for thread_local! in substrate?
I what to use thread_local! in substrate.
I aware about Storage ;)
I want to store temporary data for unit tests. without thread local it does not work property.
thread_local! {
static COINS: ...
6
votes
1
answer
84
views
I want to enable Teleport Asset functionality in XCM between two parachains. How should I do it? Also, how do I teleport asset from Para1 to Para2?
My aim is to teleport an asset on parachain1 to parachain2. But I saw in parachain code, that teleport is disable. How do I enable it? I am confused about Teleport in XCM.
Basically, how do I make it ...
0
votes
1
answer
47
views
Difficulty understanding DEX logic
Difficulty understanding DEX logic . in first I have to share the Repository that I check the codes .
I could not understand this function. why should I implement the create_exchange function? what ...
0
votes
0
answers
32
views
--listen-addr /ip4/0.0.0.0/tcp/9944/ws breaks polkadot.js
I am trying to get my westend boot nodes to also serve polkadot.js
Following https://github.com/paritytech/polkadot/issues/6208, there is a recommendation [requirement?] to run polkadot with Node was ...
4
votes
1
answer
38
views
After upgrading the chain version and elections not happening
I have a chain running on polkadot-v0.9.18 and I want to upgrade it to polkadot-v0.9.20, so I did a runtime upgrade using the latters wasm codeand changed the client. After this the elections are not ...
1
vote
0
answers
21
views
How to show dropdown in PolkadotJS after selecting an item for extrinsic?
First of all I apologise in advance for asking this weird question. I am not sure if this is the right forum.
I have a scenario, where I have a data structure and storage like this:
#[derive(PartialEq,...