Questions tagged [substrate-node]
The substrate-node tag has no usage guidance.
200
questions
1
vote
1
answer
40
views
Custom RPC Error on sp_api::decl_runtime_apis!
We are adding a custom rpc and following along with
https://github.com/AlexD10S/susbtrate-node-template/blob/rpc-custom-methods/pallets/template/rpc/runtime-api/src/lib.rs
and
https://github.com/...
0
votes
1
answer
53
views
Compilation Error with Substrate on Rust Nightly: #![feature] May Not Be Used on the Stable Release Channel
I'm working on a Substrate-based blockchain project and encountering a compilation error when trying to build my node runtime. The error indicates that nightly features are being used while the stable ...
3
votes
1
answer
88
views
RPC node is rebooting itself from time to time
Node is working correct but there is a moment that shows the following error messages and reboots:
2023-10-12 19:39:26 Accepting new connection 170/10000
2023-10-12 19:39:26 Accepting new connection ...
3
votes
2
answers
61
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-...
0
votes
2
answers
45
views
Is there a standalone node-template that points to the polkadot-sdk repo?
Are there are node templates that one can use readily without tinkering with the versions and tags? Something that works out of the box?
And it should point to the polkadot-sdk repo and not the ...
0
votes
1
answer
53
views
How to test parachain after slots acquired?
I have acquired parachain in rococo test chain with parachain 4,285.
After that I try to start the collator node using following command as shown in Acquire a testnet slots tutorial,
./target/release/...
0
votes
1
answer
19
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 ...
1
vote
1
answer
85
views
payment_queryInfo returning Execution aborted due to trap: wasm trap: wasm `unreachable` instruction executed
I was trying to query payment_queryInfo on current Westend testnet, and the following payload used to works at spec 9430.
{
"jsonrpc": "2.0",
"method": "...
0
votes
1
answer
28
views
Resolving "Bootnode on a Different Chain" Error in Substrate Network Setup
I am in the process of setting up a Substrate-based blockchain network and encountered a challenging issue while trying to connect my node to a bootnode. The error I'm facing is as follows:
Bootnode ...
0
votes
1
answer
16
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 ...
0
votes
1
answer
20
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
1
answer
39
views
How to increment Uniques Pallet T::ItemId
I have following substrate pallet implementation to split an Item and create new Items
#[pallet::call_index(26)]
#[pallet::weight(T::WeightInfo::split())]
pub fn split(
...
1
vote
2
answers
35
views
ERROR try-runtime::cli] ❌ Weight safety issues detected
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
19
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 ...
0
votes
1
answer
38
views
Connect a local node to the Rococo Parachain Network
Issue:
Currently, I have a parachain and a relay chain running on Rococo testnet locally. I'm having trouble connecting my node to the parachain network (0 peers to 1 peer).
Goal:
I'm trying to ...
1
vote
1
answer
18
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
16
views
What should be `Good Enough` requirement for Substrate based chain?
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, ...
0
votes
1
answer
27
views
Do you know any ready-to-start substrate based blockchain that I can take as fundament for my blockchain?
Is there any ready open blockchain to start? I need the one with staking and with opportunity to make new tokens. To send tokens with other users in this blockchain. Or maybe something close to this.
...
0
votes
1
answer
34
views
How to declare runtime api?
I have a runtime constant declared in a pallet like this:
/// How much space there is on the network.
#[pallet::constant]
type TotalSpacePledged: Get<u128>;
Source code
...
0
votes
1
answer
43
views
Subscribe to storage map Entries?
On our substrate node using a storage double map. We are trying to subscribe to an entries query.
something like
const unsub = await api.query.system.balances.entries(ADDR, (res) => {
console....
1
vote
1
answer
108
views
Parachain not including all transactions from tx pool into block
Context
OriginTrail Parachain Mainnet is pushing significant amount of transactions (175k/day) - with tendency of growth
Collators are filling blocks up at ~25% of block weight, with a large pending ...
1
vote
1
answer
49
views
Set Off-chain worker with AccountId20
The examples in substrate use the sr25519 AccountId and Multisignature for creating offchain workers with signed transactions. Is there a way to use AccountId20 and EthereumSignature for a node using ...
2
votes
1
answer
61
views
Simple Custom Pallet making XCM call
Are there any pallet examples for custom making XCM call. I know there is ping pallet provided by cumulus but I believe that is pretty old.
Does ping pallet still works?
0
votes
0
answers
9
views
How are boot nodes fetched for system chains / parathreads?
The Polkadot JS API api.rpc.syncstate.genSyncSpec, that fetches boot nodes for the relay chains, is not an available function for system chains.
What is the process of gathering boot nodes for system /...
1
vote
0
answers
36
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
102
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 ...
1
vote
1
answer
64
views
while building an application logic (use macros in a custom pallet) [duplicate]
[][in build an application logic im facing this error im new to substrate please help me fix this.]
4
votes
1
answer
52
views
substrate | try-runtime | sub-command | "fast-forward" | "ERROR main runtime: panicked at 'Timestamp slot must match `CurrentSlot`'"
I am currently in the process of integrating and testing the "try-runtime" feature on Starknet Madara.
https://github.com/keep-starknet-strange/madara/pull/690
However, I have encountered ...
1
vote
1
answer
22
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 ...
0
votes
1
answer
24
views
does substrate chain use longest chain or ghost protocol for fork chioce rule?
i have been going through documentation of substrate . i came through the point of select chain method for forking concept and find out that their are two methods for chain selection Ghost and ...
1
vote
0
answers
20
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 ...
2
votes
1
answer
152
views
Transaction execution error of EVM "EvmCoreErrorExitReason (OutOfFund)"
I have developed Substrate Network with EVM compatibility and POA consensus algorithm.
It was working fine and transaction execution time was although alot but for now getting an error from EVM-core.
...
3
votes
1
answer
79
views
How to add custom account as initial authorities in chain_spec.rs file
I've successfully added custom accounts in the Sudo account and pre-funded accounts following this stack adding an account but I also wanted to set custom accounts as initial PoA authorities.
Thank ...
0
votes
1
answer
17
views
How to transfer assets from parachain to relay chain
As I'm new to substrate and polkadot I don't know how to transfer assets from parachain to relay chain using xcm can anyone please help me to do this.
1
vote
1
answer
41
views
I got this error while building a blockchain (building a local blockchain)
when i run node template without --ws external its producing blocks but when i run with --ws external its giving me error please help me fix this im new to substrate.
0
votes
1
answer
16
views
How to Sync Two Boot Nodes for Redundancy?
I'm working on a blockchain project and want to ensure uninterrupted block production even if one of our boot nodes goes down. How can we effectively sync two boot nodes so that if one goes offline, ...
0
votes
2
answers
57
views
Where do I find the construct_runtime macro?
I'm trying to do the tutorial Authorize specific nodes, however I'm not sure where to find the construct_runtime macro in my lib.rs file. The tutorial requires the line NodeAuthorization: ...
0
votes
1
answer
13
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:...
0
votes
1
answer
55
views
Using Substrate Connect to Query custom chain pallets
We have been testing out the WS Provider in POlkadotJS and its working good with our custom pallets.
However we just got substrate Connect working with our custom substrate based node. The assets ...
3
votes
1
answer
48
views
How to add vector fields in the block header?
I want to add a vector fields in the block header of substrate chain. Is this possible?
If yes, How can i do that? Do we have any reference code for it?
Thanks in advance
1
vote
1
answer
16
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
51
views
How to create a nomination pool using CLI or API?
I want to create a nomination pool on a substrate based chain, I am using polkadot api, this is what I have managed to write till now
const { ApiPromise, WsProvider, Keyring } = require('@polkadot/api'...
1
vote
1
answer
61
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-...
4
votes
1
answer
51
views
Is there a way to use a crate that depends on the `std` in substrate OCW?
from what I've learned so far, the OCW is designed specifically for executing heavy and time-consuming computations outside of the runtime. As the OCW is not a part of runtime/wasm, I guess the OCW ...
0
votes
0
answers
28
views
Error following the tutorial Authorize specific nodes [duplicate]
i am following the tutorial Authorize specific nodes, but when i arrive to the point where i have to add the line
construct_runtime!(
pub enum Runtime where
Block = Block,
NodeBlock = opaque::...
0
votes
1
answer
21
views
Fixed Amount of Minting per block?
If i want to mint specific amount of native coin by the end of every block where should i implement the logic . Do i customize the pallet-template using pallet hooks , or do i implement a existing ...
0
votes
0
answers
24
views
Number of digest items must match that calculated
I updated the runtime code by following these instructions: https://docs.substrate.io/tutorials/build-a-blockchain/upgrade-a-running-network/
And now when syncing from 0, the node gives an error on ...
0
votes
2
answers
67
views
Build Error with `tikv-jemalloc-sys v0.5.4+5.3.0-patched` in Substrate Node Template
I am encountering a build error when running cargo build --release on a Substrate Node Template project. Here is the error message:
error: failed to run custom build command for `tikv-jemalloc-sys v0....
1
vote
2
answers
34
views
What are the RPC endpoints that is usually unique to Substrate vs the unique to Polkadot nodes?
I used typegen to generate types for Substrate, Kusama and Polkadot networks. And I got the exact same types for the rpc endpoints (rpc methods). Is this normal? Should not be there some unique ...
0
votes
0
answers
23
views
What is a minimal requirements for a Frontier Template based blockchain's network?
I'm trying to figure out what a minimal blockchain would look like using substrate's frontier node.
What I'm trying to build:
A public minimal blockchain network
Aura consensus model
EVM and Ethereum ...