Skip to main content

Questions tagged [substrate-node]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
18 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 ...
Boleng's user avatar
  • 535
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 ...
Shubham Gupta's user avatar
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:...
Boleng's user avatar
  • 535
0 votes
1 answer
10 views

Sudo account reward remainder

impl pallet_staking::Config for Runtime { type RewardRemainder = Treasury; } how can i give it to sudo account
Newt's user avatar
  • 1
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 ...
Boleng's user avatar
  • 535
1 vote
1 answer
60 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-...
Boleng's user avatar
  • 535
3 votes
1 answer
40 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 ...
Yahor Tsaryk's user avatar
0 votes
0 answers
24 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::...
NXHM's user avatar
  • 1
0 votes
2 answers
54 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: ...
Keea's user avatar
  • 13
0 votes
1 answer
20 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 ...
Md Raisul Islam Rony's user avatar
0 votes
0 answers
19 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 ...
ehsan6sha's user avatar
0 votes
0 answers
22 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 ...
tinnick's user avatar
  • 101
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, ...
Humayun Ahmad Rajib's user avatar
0 votes
0 answers
13 views

How do I check collators intent in polkadotjs/api like we check for validators?

I want to monitor the intent of my collators using @polkadotjs/api like I am monitoring for my validators using the below codes : async function checkValidatorIntent(url, validatorAddress) { try { ...
Salisu Bako's user avatar
1 vote
1 answer
38 views

Upgrade parachain collator binary from polkadot-sdk v0.9.29 to v1.1.0, failed to launch with error 'Invalid argument: column families not opened'

We're running a parachain on Polkadot Relaychain. The parachain collator binary is built based on polkadot-sdk v0.9.29 When we try to upgrade binary to a new version which is built based on polkadot-...
Brian Wu's user avatar
1 vote
1 answer
40 views

Inherent extrinsic returned unexpected error: Execution aborted due to trap: wasm trap: wasm `unreachable` instruction executed'

Our parachain is running on the polkadot relaychain, when we upgrade the runtime, we're facing the following errors shown in the collator's logs: 2024-05-09 07:43:30.376 INFO tokio-runtime-worker ...
Brian Wu's user avatar
0 votes
0 answers
47 views

Mitigating Single Point of Failure in a Distributed Blockchain Network Setup(Substrate & Polkadot)

We have deployed a blockchain network using five cloud machines distributed across various geographical locations, with each machine running a specific node type crucial for the network’s ...
Humayun Ahmad Rajib's user avatar
0 votes
0 answers
17 views

Randomness in substrate pallets

We are creating a price guessing game as a substrate pallet. We would like to fetch random objects from an API for the game. What options can we use to get randomness within our pallet?
René Hürter's user avatar
0 votes
0 answers
17 views

Starting node from 2 different servers, peer ids on different chains

I have successfully started multiple nodes locally on one server but cannot get it working using 2 separate servers. I keep getting: Bootnode with peer id ...
Bob Linux's user avatar
  • 113
1 vote
0 answers
13 views

How can I manage the issue of excessive gas estimation in MetaMask when deploying a dapp contract on my WASM+EVM chain and calling its functions?

i am trying to deploy a dapp contract on my WASM + EVM based substrate chain but while calling the contract functions it gives me high gas estimation, how can i handle this issue?
Arunjot Singh's user avatar
3 votes
1 answer
59 views

Substrate node not propagating transactions

So we have a very strange bug that is happening when sending transaction to a substrate (crust node in this instance). We are sending signed transaction to a crust node via polkadot.js as such: const ...
Tadej Vengust's user avatar
0 votes
2 answers
56 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....
Humayun Ahmad Rajib's user avatar
0 votes
1 answer
65 views

Implementing Load Balancing for Multiple Validator Nodes on AWS: Seeking Suggestions

I've set up two instances on AWS, each running a validator node for a blockchain project. Here’s a quick breakdown of my configuration: First Server: Runs a validator node and a reverse proxy. It's ...
Humayun Ahmad Rajib's user avatar
-1 votes
1 answer
33 views

What is the max value we can use for `--rpc-max-connections ` flag of substrate node template?

I am using substrate node template. We know it comes with many flag . I want to know specifics about --rpc-max-conections . We know that default is 100 but i want to know is there any maximum ...
Md. Raisul Islam Rony's user avatar
0 votes
0 answers
15 views

How to send data from parachain to relaycahin

Hello everyone I am working on a project where I need to send some data or messages from my custom parachain to a custom relaychain, then I want to map with a particular account and store it on ...
manish singh's user avatar
0 votes
1 answer
47 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 ...
Mr Coder's user avatar
  • 923
1 vote
0 answers
9 views

GOV1 referendum voting giving error on 0.1x voting balance

I was making a small service for calling the aye and nye and it is not working for 0.1x voting balance but working fine for every other option it is giving error propsExtrinsic.signAndSend is not a ...
Shubham Gupta's user avatar
1 vote
0 answers
26 views

Is it possible to sync up fast to the head of a substrate blockchain and then archive from that point on?

I'm dealing with a substrate based blockchain and I'd like to know if the current scenario is possible. For my specific use case, I need to sync up with the head of the blockchain as quickly as ...
Miguel Sama's user avatar
0 votes
1 answer
16 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.
Preethi M's user avatar
0 votes
1 answer
23 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 ...
Md. Nur E Azam's user avatar
0 votes
0 answers
53 views

Bittensor Subtensor Chain

Does anyone know how to run a public subtensor node and synchronize with Bittensor network on nakamoto instead of the current finney ? There are some nodes currently running on nakamoto chain. I am ...
kapitankot's user avatar
0 votes
1 answer
34 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( ...
Kalanamith's user avatar
1 vote
1 answer
38 views

Conflicting `Encode` and `Decode` Trait Implementations for Type Aliases in a custom pallet

I'm working on a custom pallet related to the zero-knowledge proof system and I've run into an issue regarding the trait implementations. I have defined a fixed-size hash type H256 using a custom ...
Discardo's user avatar
  • 436
0 votes
1 answer
42 views

Substrate Offchain Worker - failed to fetch sample price

I am trying to use Substrate Offchain Worker. I implemented as mentioned here https://github.com/paritytech/polkadot-sdk/tree/master/substrate/frame/examples/offchain-worker. I am using same sample ...
Boleng's user avatar
  • 535
0 votes
0 answers
15 views

unable to discover and connect the peer to the --chain contracts-rococo-local

I'm trying to have my node discover and connect to the blockchain terminal so that the peer count will update from 0 peers to 1 peers. However, I keep getting this message: 2024-03-15 18:38:36.394 ...
AndrewKim's user avatar
0 votes
0 answers
9 views

Not able to get randomness on unit test

I'm building a pallet that requires some randomness to simulate the act of tossing a coin. That's why I'm following the same implementation as provided on the Lottery pallet. Particularly, the ...
nhussein11's user avatar
1 vote
1 answer
80 views

Syncing with a chain that requires host functions deprecated by the Substrate

I'm working on upgrading a Substrate-based standalone chain that was launched several years ago. Recently, we made a transition from polkadot-v0.9.34 to polkadot-v0.9.35. After we did that, we are no ...
Yahor Tsaryk's user avatar
0 votes
0 answers
13 views

Connecting a libp2p node to the Substrate Parachain Network

Goal Add a libp2p node to the Substrate parachain network to have Idle 0 peers to 1 peer. Method I'm using mdns as the discovery mechanism. Libp2p Config: const options = { peerId: peerId, addresses:...
Peter Kim's user avatar
0 votes
1 answer
25 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 ...
abhi3700's user avatar
  • 131
0 votes
1 answer
32 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 ...
Peter Kim's user avatar
0 votes
0 answers
53 views

Cryptographic requirements for random numbers on substrate chain

As far as I know, one of the possibilities to generate random numbers within a substrate chain is by using the pallet_insecure_randomness_collective_flip. However, the documentation explicitly states ...
nhussein11's user avatar
0 votes
0 answers
18 views

Not able to add any crates in substrate-node-template

I am working on substrate.where I want to use some of create like pinata_sdk,Openssl etc but I am not able to import or add in cargo.tmol file where I add I get this error: ` --- stderr Compiling sp-...
manish singh's user avatar
0 votes
0 answers
28 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 ...
Marlo's user avatar
  • 111
0 votes
0 answers
10 views

Kitties Practice Application

I keep on getting the error when I run my substrate node: 'failed to run custom build command for librocksdb-sys v6.20.3
bele luther's user avatar
1 vote
0 answers
29 views

Facing problem in fetching all Preimages using rpc

At certain time, it shows this error.
Shiv Kumar ATR646's user avatar
2 votes
1 answer
151 views

How can I create OCW that won't activates every block, but will activates only when I call function that it represents?

I wanna create OCW that will send a http request to the API and get the response and use this response in runtime code to call extrinsic with this data. This OCW should triggers only when I want to ...
Artem Levchuk's user avatar
0 votes
0 answers
27 views

Can we automate extrinsic calls in Substrate chain?

Recently I tested agile core time feature on Rococo. The idea was to test Parathread producing block. We have to submit either placeOrderAllowDeath or placeOrderKeepAlive extrinsic from ...
Boleng's user avatar
  • 535
3 votes
0 answers
49 views

Explorer compatibility with blockchain node version v1.0.0

The issue I ran in is finding an explorer version, which is compatible with substrate version v1.0.0. I found that version of explorer below v0.133.1 (https://github.com/polkadot-js/apps/releases/tag/...
Raid Ateir's user avatar
1 vote
0 answers
26 views

how to know about token implementation?

I have a questions about Tokens in polkadot ecosystem , If I am on parachain and this parachain A uses a token from another parachain B , if this token implements on_transfer hook does this hook will ...
castle_chain's user avatar
1 vote
1 answer
40 views

How can I change --rpc-max-connections on already running substrate-based node?

I have already running substrate-based node and I started to get error: 429 Too many requests: Too many connections. This happens due to HTTP requests that my FE produces. After research I ...
Artem Levchuk's user avatar