Questions tagged [substrate-node]
The substrate-node tag has no summary.
205 questions
0
votes
0
answers
12
views
Peers drop to 0 for archive nodes outside same data center
We had a problem with our testnet and had to rebuild it from a snapshot, recreating all of our nodes. We have some validator and archive nodes in a North Virginia (NV) data center, and we normally run ...
0
votes
1
answer
10
views
How to use snapshot created with try-runtime-cli to sync a node faster?
Can I use the snapshot (.snap) file created with try-runtime-cli to sync a validator node faster?
0
votes
1
answer
11
views
How can I fork a live substrate network so that new nodes ignore nodes on the old network?
We encountered a problem with our live testnet (a substrate-based EVM chain). We don't want to reset the whole testnet, but we need to fork the network. The problem is that the new validator nodes are ...
0
votes
1
answer
17
views
How can I recover a blockchain after a bad runtime upgrade caused the chain to fail?
I called setCode with a runtime upgrade that has crashed our testnet blockchain network. New blocks are not being produced. We don't know what caused the problem. We are trying to avoid a full network ...
0
votes
0
answers
23
views
How to fetch snapshot of election provider in polkadot or substrate?
I'm running Substrate v1.17 and want to snapshot the Election Provider (multi-phase / multi-block) module to obtain election data. I attempted to query the module's storage via RPC, but it returns ...
0
votes
0
answers
30
views
Polkadot parachain sync westend asset hub halt (v1.19.1)
sync from scratch (polkadot-parachain 1.19.1-f3969c7ddd3)
command : /root/polkadot-parachain --name btse_westend_asset_hub --rpc-external --rpc-port 8800 --rpc-cors all --chain asset-hub-westend --...
2
votes
0
answers
69
views
What are the instructions to run a Westend Asset Hub or Passet Hub full node?
I’d like to run a full node for either the Westend Asset Hub or the Passet Hub. However, I can’t find a single step-by-step guide that explains:
The exact command(s) required to start the node (e.g., ...
0
votes
0
answers
13
views
Getting delegatedStaking.notEnoughFunds when calling nominationPools.withdrawUnbounded after runtime upgrade
I’m trying to withdraw unbonded funds from a nomination pool, but I keep hitting the delegatedStaking.notEnoughFunds error when calling:
nominationPools.withdrawUnbounded(poolId, memberAccount)
The ...
0
votes
0
answers
22
views
ETH Fees Calculated Too Low with pallet-revive
I’m integrating the newly added pallet-revive into my chain. The chain is live and currently uses 18 decimals. I’ve already updated the NativeToEthRatio to 1 (previously it was 1_000_000 when the ...
0
votes
1
answer
30
views
How to unlock referendum-locked tokens when account has insufficient free balance for transaction fees?
I’m running a Substrate-based chain that includes pallet-conviction-voting, and one of our validators is facing an issue with frozen tokens due to expired referendum locks.
Here’s the situation:
The ...
0
votes
2
answers
38
views
What are the advantages of building a Substrate-based parachain on Polkadot instead of a standalone blockchain?
Substrate can be used to develop both standalone blockchains and parachains connected to the Polkadot relay chain. Each approach has architectural, operational, and ecosystem-level implications.
MY ...
0
votes
1
answer
67
views
Run live westend asset hub binary locally
How can I run Westend Asset Hub locally to check eth interactions and debug it in depth?
0
votes
0
answers
16
views
Getting an error when building the cli folder in substrate
error[E0432]: unresolved import `pallet_timestamp::GenesisConfig`
|
26 | use pallet_timestamp::GenesisConfig as TimestampGenesisConfig;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
0
votes
0
answers
15
views
Substrate Archive Node Will Not Sync Past Block 4097
Experimenting with archive nodes, we are finding that any node started with any kind of archive flag, will refuse to sync past block 4097 specifically. This includes validators started with the --...
0
votes
1
answer
28
views
Custom OnChargeTransaction implementation not being invoked
I'm working on a Substrate/Frontier-based blockchain and have implemented a custom fee-handling logic using the OnChargeTransaction trait from the pallet_transaction_payment pallet. However, it seems ...
0
votes
0
answers
37
views
Delaying a Block announcement by 1 second isn't working as expected
I've recently attempted to introduce a delay in the block announcement mechanism in the SyncingEngine, but it doesn't seem to take effect as expected. Additionally, pre-validating block announcement ...
0
votes
1
answer
26
views
How can I execute smart contract functions using Rust or Golang instead of JavaScript in a Substrate/Polkadot environment?
I'm working with the polkadot-sdk-solochain-template and have successfully executed contract calls using JavaScript (via polkadot‑js). However, I'm facing challenges when trying to call smart contract ...
0
votes
1
answer
62
views
`--sync warp` dowloands and keeps all block data
I'm using the parachain node template from polkadot-sdk (2409-1) and when I start the node with these relaychain arguments: --sync warp --state-pruning 256 --blocks-pruning 256, it appears that once ...
0
votes
0
answers
14
views
how technical fellowship and whitelist works in polkadot opengov?
i am using polkadotsdk version 1.11 and i am studying opengov dao for my project which is running on opengov . while going through it i came to whitelist column and also got to know about technical ...
0
votes
0
answers
8
views
Fetch aux store failed | Not enough data to fill buffer
I'm using the Substrate blockchain and recently upgraded our chain from v0.9.27 to v0.9.42. However, the eth_getTransactionByHash function is failing to fetch transaction details, returning the ...
0
votes
2
answers
47
views
Can you suggest an open source block explorer for a substrate based node to be connected and see the blocks, transaction and other data?
I want to make sure that I can use https://github.com/subscan-explorer/subscan-essentials.git and get a similar UI that is used in explorers like
https://polkadot.subscan.io/
https://kusama.subscan....
1
vote
0
answers
8
views
Huge amount of estimated weight benchmarked
I observed a huge amount of the estimated generated weights after running benchmarking on production environment. Curious what is the root cause of it?
/// Storage: `Nfts::Item` (r:1 w:1)
/// Proof: `...
1
vote
0
answers
20
views
Error: NetworkKeyNotFound when running solochain [duplicate]
I'm trying to run solochain-template-node with changed consensus from aura to babe with custom chainspec created based on chain=local using command:
./target/release/solochain-template-node --base-...
2
votes
1
answer
38
views
How to Update tokenSymbol Defined in ChainSpec Without Purging the Chain?
I’m working on a Substrate-based blockchain and have defined tokenSymbol, tokenDecimals, and ss58Format properties in the ChainSpec as follows:
Some(json!({
"ss58Format": 42,
"...
0
votes
1
answer
22
views
runtime requires function imports which are not present on the host: 'env:ext_statement_store_submit_statement_version_1'
I'm using polkadot-sdk-solochain-template with customization. Now, I'm trying to run the node with cargo run --release -- --dev and got this:
So, the main problem is Service(Client(VersionInvalid(&...
0
votes
1
answer
52
views
found duplicate lang item `panic_impl` the lang item is first defined in crate `std` (which `once_cell` depends on) [duplicate]
I'm trying to build polkadot-solochain-template with some customizations and got this error:
error[E0152]: found duplicate lang item `panic_impl`
--> /home/viktor/.cargo/registry/src/index....
1
vote
0
answers
34
views
sp-io v38.0.0 cannot find function `malloc` in module `crate::allocator`
I'm building custom solochain using polkadot-sdk-solochain-template.
After I've added some dependencies and fixed error with implementation I'm starting to get the sp-io error:
cannot find function `...
0
votes
0
answers
20
views
How to Generate Substrate Keys for a Custom SS58 Format (e.g., 567)?
I am working on a Substrate-based blockchain and need to generate keys for my network, which uses a custom SS58FORMAT = 567. I am using the key subcommand from my Substrate node executable. However, ...
0
votes
0
answers
14
views
Resolving Frame-Metadata Version Conflict Between Dependencies while updating version of substrate project
There seems to be a frame-metadata crate error where 2 versions are being referenced which is causing the error. The 2 versions are v16.0.0 and v18.0.0. The issue is that the substrate-wasm-builder ...
0
votes
0
answers
33
views
Pallet Assets. Balances.InsufficientBalance
Trying to create an asset via the Polkadot apps interface, but encountering the error: balances.InsufficientBalance. Attempting to create the asset with a sudo account. There are sufficient funds in ...
0
votes
1
answer
26
views
Decode human-readable Error in pallet
I am using ethers.js to estimate the gas for a transaction on a Substrate-based chain with EVM compatibility. However, I received the following error: Module(ModuleError { index: 55, error: [4, 0, 0, ...
1
vote
2
answers
188
views
Resolving Sandbox Host Function Access After Deprecation in Polkadot v0.9.35
I am currently working on a Substrate-based solo chain that has migrated from polkadot-v0.9.34 to polkadot-v0.9.35 and is now on the stable branch 2409. In v0.9.35, the Sandbox host functions were ...
0
votes
1
answer
24
views
Removing data from blockchain
Does freeing or updating the storage map or any runtime storage in substrate deletes the old that in blockchain?
Does it done through pruning?
1
vote
0
answers
14
views
why finalization of chain stops after adding more than 1 validator on single node?
i have my substrate blockchain running with 3 validator setup .when i add more than 1 validator on single node and i.e sometimes even 3 or 4 the finalization of my chain stops .
what is the reason ...
0
votes
0
answers
18
views
substrate chain's blocks are getting mined very slow all of a sudden
Earlier the blocks were getting mined with an average of 6 seconds. Now the average time to mine a new block since a day is 9 minutes. All the validator nodes are active.They're running their nodes on ...
0
votes
1
answer
49
views
Can't find substrate-node-template
I'm new to substrate.I'm following the a tutorial on youtube https://www.youtube.com/watch?v=G897F8Gw1PM&list=PL5dTjWUk_cPYdb4j2RH8BHEAK3z_ZME1j&index=2 and the substrate docs to build a local ...
0
votes
1
answer
63
views
Staking through proxy
I am working on a project at bittensor blockchain, where I have delegated my wallet to a proxy address allow proxy to perform staking ops on delegated wallets' behalf.
But when I am trying to stake ...
1
vote
1
answer
25
views
Dedot Flipper contract flip() operation not working
I am trying to work with the default flipper contract with react js based on the link: https://github.com/dedotdev/dedot.
I am trying to follow the Submitting transactions section.
First of all, I am ...
1
vote
1
answer
31
views
What should be `Good Enough` requirement for Substrate based chain? [closed]
I am working on a Substrate based chain. I want to make sure my chain is up to par for Polkadot community.
For example: my chain should use latest Polkadot SDK stable version.
Are there other things, ...
3
votes
2
answers
78
views
use of undeclared crate or module `alloc` when upgrade to `v1.13.0`
I got this error below when running psvm -v 1.13.0
error[E0433]: failed to resolve: use of undeclared crate or module `alloc`
--> /Users/chungquantin/.cargo/registry/src/index.crates.io-...
1
vote
0
answers
46
views
frame-benchmarking-0.35.0: use of undeclared crate or module `alloc`
I am trying to upgrade the base-parachain to v1.13.0 and got an issue with the frame-benchmarking. This error coming from the frame-benchmarking crate which throws an error
error[E0433]: failed to ...
4
votes
1
answer
124
views
Unable to compile upgrade parachain node after running `psvm v1.13.0`
I am trying to upgrade my parachain node from v1.12.0 to v1.13.0 using psvm but it does not compile successfully due to some mismatch conversion error of libp2p. I believe this PR must cause that ...
0
votes
1
answer
39
views
Validator goes offline after setting wrong session keys
I am running solo chain with 4 validators.
What I did wrong: I rotated session keys of second validator and by mistake, I set those keys as a part of first validator>>Session Keys.
After that, ...
1
vote
2
answers
49
views
ERROR try-runtime::cli] ❌ Weight safety issues detected [closed]
Hi I am trying to run try-runtime to verify runtime upgrade but getting below error after migration is executed.
storage updated to v2! Migrated 124247 clouds ✅
2024-07-20T13:41:19.4485438Z [2024-07-...
1
vote
1
answer
39
views
Chain halts after runtime upgrade | Getting `Ignoring empty epoch change.` `Error with block built on`
I have a solo chain using Babe consensus. In my new branch, I implemented OneSessionHandler in one of my pallets. I am using this to collect active validators.
It's working fine if I run chain with my ...
2
votes
0
answers
34
views
Is there a way to increase Requests per second (RPS)?
Is there a way to increase the requests per second (RPS) on chain after its deployment. I want to fetch the transactions and block details faster than the default value on an application that I am ...
0
votes
1
answer
21
views
How to fix `cargo clippy` error for `#[pallet::call]` and `#[pallet::generate_deposit(pub(crate) fn deposit_event)]`
I have added a clippy check #![warn(clippy::missing_docs_in_private_items)] on the top of my pallet. I have added documents at all required places. However I am still getting below errors for #[pallet:...
1
vote
1
answer
24
views
Sudo account reward remainder
impl pallet_staking::Config for Runtime {
type RewardRemainder = Treasury;
}
How can I give it to sudo account
1
vote
1
answer
22
views
how to create merkle root of given hashes inside a pallet
I need to create merkle root of given hashes.
pub type MmrRootHash = H256;
pub fn create_merkle_root(leaves: Vec<MmrRootHash>) -> MmrRootHash {
..
}
Is there any library ...
1
vote
1
answer
65
views
Which one is the latest release polkadot-v1.12.0 or release-polkadot-v1.12.0 or release-crates-io-v1.12.0?
I want to upgrade my chain to latest polkadot version. When I checked the Polkadot-SDK repo. I found two branches: release-polkadot-v1.12.0 and polkadot-v1.12.0.
When I compare both branches, release-...