Questions tagged [substrate-node]

The tag has no usage guidance.

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

Genesis Sync and History: Are Archive Nodes Indispensable?

I've been exploring the intricacies of node types in Polkadot and other Substrate-based networks and came across a scenario that has left me curious. I understand that full nodes and archive nodes ...
ALeSD's user avatar
  • 499
0 votes
1 answer
29 views

Limit and Offset for for storage entries and keys

Following the docs for polkadot js storage we are getting entries and keys from the chain. Is there a way to use limit and offset to implement paging. Any ideas?
donkeydonkey's user avatar
1 vote
0 answers
8 views

What happens to smart contracts when breaking changes are introduced to ink?

I've seen breaking changes mentioned in this issue for upgrading set_code_hash. This got me thinking, what happens to existing contracts when a breaking change to ink is introduced? For example, we're ...
goastler's user avatar
  • 549
1 vote
0 answers
30 views

How are the node threads and tasks managed?

When we run a node, we start a bunch of tasks using task_manager.spawn_handle() or task_manager.spawn_essential_handle(). From my understanding, those spawn new Tokio tasks. If my computer has ...
Timothée Delabrouille's user avatar
0 votes
0 answers
9 views

Does Substrate support custom node specific environment vars or flags

I have a pallet that should have access to a secp256k1::Keypair for signing messages. And I want to be able to start the node with either the secret_key string or a path to a key-file. Then have the ...
ambiguous omen's user avatar
0 votes
0 answers
38 views

Implementing FullDeps in Substrate rpc.rs using channels instead of Arcs

This is a standard implementation of FullDeps in the rpc.rs: // Full client dependencies. pub struct FullDeps<C, P, SC, B> { /// The client instance to use. pub client: Arc<C>, ...
Discardo's user avatar
  • 382
1 vote
1 answer
86 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 ...
NZT's user avatar
  • 11
2 votes
1 answer
21 views

How come SignedExtra satisfies SignedExtension trait bound in substrate runtime?

In substrate runtime, https://github.com/paritytech/polkadot-sdk/blob/f60318f68687e601c47de5ad5ca88e2c3f8139a7/substrate/bin/node/runtime/src/lib.rs#L2106C10-L2106C21 pub type SignedExtra = ( // ...
akhil nichenametla's user avatar
1 vote
1 answer
68 views

Contribute a pallet I've written to Polkadot Relay Chain

is there a submission procedure for contributing a pallet I've written to Polkadot, for the relay chain? I would appreciate any help with this.
Emmanuel Ngubo's user avatar
2 votes
0 answers
37 views

Finalized block got stuck

StaFi chain has been running stably for a long time using version v2.0.0 of substrate, and the current version is v0.6.2. But the finalized block suddenly got stuck. Can check details here: https://...
Tore's user avatar
  • 21
2 votes
2 answers
44 views

How to imagine a real Substrate app?

How to imagine a real Substrate application? I am trying to make an application, where you can trade your own product. You can advertise product, buy, list, see your earlier purchases, etc... If I ...
Vamosz's user avatar
  • 55
0 votes
0 answers
18 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/...
donkeydonkey's user avatar
5 votes
0 answers
51 views

Is there any good way to keep an intermediate state for an operation between several transactions/blocks in a BABE/GRANDPA-based chain?

I know that the best practices suggest designing transactions (pallet calls) in a way that executes the operation atomically and doesn't keep any intermediate states. This guarantees, that in case a ...
Yahor Tsaryk's user avatar
1 vote
0 answers
23 views

how to solve mismatched type error in substrate?

I have been integrating paritytech frontier(0.9.43) version with the substrate 0.9.43 version . while integrating when i added frontier changes in rpc.rs and service.rs file i am facing this error. ...
Karanvir Singh's user avatar
0 votes
0 answers
5 views

How to get Typegen to use the Custom RPC Runtime

We have implemented custom template pallet rpc methods and they are visible when doing a call to the node on rpc.methods we get template_sum5 template_sumAndStore however typegen is not adding them......
donkeydonkey's user avatar
1 vote
1 answer
59 views

while building an application logic (use macros in a custom pallet)

[][in build an application logic im facing this error im new to substrate please help me fix this.]
Preethi M's user avatar
2 votes
0 answers
35 views

segmentation fault ERROR

I just started in learning substrate and I want to run the example. I take the tutorial on the site https://docs.substrate.io/install/macos/. I have already done all steps. I tried run test blockchain ...
Kirill's user avatar
  • 21
2 votes
2 answers
53 views

Steps for migration from polkadot-v0.9.30 to polkadot-v0.9.43/v1.0.0

At Ternoa we are trying to do a long jump from polkadot-v0.9.30 to polkadot-v0.9.43 or the latest. We would like to get some suggestions here if someone or some projects already experienced this much ...
Immanuel John's user avatar
2 votes
0 answers
31 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 ...
Diego Forziati's user avatar
2 votes
1 answer
42 views

What is default --execution <strategy> and recommended value for node/validator operator?

When executing node as a validator, the documentation states here that there is differents execution strategy available, however as this is optionnal switches, what is default if nothing is set ? ...
Floy's user avatar
  • 21
1 vote
0 answers
18 views

How to curl `ink!` contract storage?

I'm trying to use curl to query an ink contract's storage using the RPC of substrate. I've looked at the below question How do I call the RPC method `contractInfoOf` using curl? but it does not ...
goastler's user avatar
  • 549
0 votes
0 answers
22 views

Build a blockchain

I'm following substrate documentation in that build a blockchain tutorial while following the monitoring node metrics tutorial. I got stuck while installing prometheus on my ec2 instance is there any ...
Preethi M's user avatar
0 votes
0 answers
45 views

Maintained Substrate-NPoS-template?

Substrate has a substrate-node-template with Aura consensus which is well maintained and updated time to time. Do we have a same kind of template for NPoS consensus which is well maintained and ...
Immanuel John's user avatar
3 votes
1 answer
62 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 ...
Max's user avatar
  • 31
1 vote
1 answer
24 views

Polkadot JS query response types are missing

No types for blockchain query responses are available in our IDE. Doing any query like this await blockchain.api.query.assets.asset(id, (res) => { const info = res.toJSON() console.log(&...
donkeydonkey's user avatar
-1 votes
1 answer
50 views

Polkadot v43 failed to send issue with tx pool

Zombienet + polkadot v43 two errors: DEBUG tokio-runtime-worker txpool: [0xd7165975185efe4f63425ab930021c89f166fda20d0e4f564f61c9ebd491640e] Error importing: TooLowPriority { old: 13700, new: 513 } ...
rust.dev's user avatar
  • 509
0 votes
1 answer
39 views

council execution giving bad origin error?

I am using substrate blockchain which is on polkadot-v0.9.36 . I have made proposal through council which is of balance.forcetransfer, and did majority voting in aye.After completion , when I close ...
Karanvir Singh's user avatar
1 vote
1 answer
27 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.
Preethi M's user avatar
1 vote
1 answer
109 views

How to calculate TPS for a substrate based chain?

Let's say we have a 2 node network with PoA as consensus. In that case how to calculate TPS of this chain specifically?
Immanuel John's user avatar
0 votes
0 answers
25 views

How can one design and implement a fee rule?

I hope you are doing well! How can one design and implement a fee rule on a substrate-based blockchain that is contingent on the transaction payment value? I would like to create this fee rule based ...
Zacksys ME's user avatar
0 votes
2 answers
85 views

Unable to run development node after repo migration

I tried running cargo run -- --dev after building. However i get this error 0: Invalid input: Error opening spec file dev: No such file or directory (os error 2). I don't know rust and substrate ...
Rajdeep Singh's user avatar
0 votes
1 answer
36 views

Newer nodes unable to execute genesis chainspec, "unknown field `phantom`"

We've been running a testnet and have executed a number of runtime upgrades. We've also upgraded the node across a variety of changes. New validators are trying to join the network and yet they cannot ...
Drew Stone's user avatar
  • 1,164
2 votes
2 answers
148 views

Block finalization stalled

I have been running a testing network recently and they have encountered a very strange situation: the finalized has stopped at # 107379 and cannot be further confirmed. The logs of each consensus ...
Yang Elden's user avatar
1 vote
1 answer
45 views

Getting schedular overweight error while doing runtime upgrade

I am trying to do a runtime upgrade through democracy referenda and the steps I performed are as follows: create pre-image. submit pre-image through democracy . endorse voting . After this I am ...
Shubham Gupta's user avatar
5 votes
1 answer
104 views

After doing runtime upgrade getting contract not found in substrate contracts ui

I am doing runtime upgrade of substrate blockchain from 0.9.36 --> 0.9.37 --->0.9.43 . And i have some contracts deployed on the running blockchain which is running on 36 version . After doing ...
Karanvir Singh's user avatar
1 vote
0 answers
17 views

RelaychainwithChainbridge

We have tried to connect my relay chain with Chainbridge, but I got errors (SUB to ETH and ETH to SUB). I could not replace the existing relay chain with my relay chain. Please let me know the ...
support's user avatar
  • 135
2 votes
1 answer
73 views

How to customize pallet_contracts?

We have our own chain where we've added pallet_contracts pallet for writing and deploying smart contract. We just want to give permission to upload smart contract for few users only. Someone please ...
Ganesh11's user avatar
  • 1,208
2 votes
1 answer
138 views

I want to build a docker image for my substrate node

Now I am building a new docker image for my substrate node Docker version 24.0.5, build ced0996 Node version v18.16.1 I am using this Dockerfile.dev to build the docker image. FROM paritytech/ci-linux:...
Alan Ma's user avatar
  • 47
0 votes
1 answer
27 views

While authorizing specific nodes in building a blockchain i got the following error

I got this error while authorizing specific nodes in building a blockchain. It gives me error like this. error: failed to select a version for `bounded-collections`. ... required by package `sp-...
Preethi M's user avatar
0 votes
0 answers
43 views

Stable coin in substrate

How can a stablecoin be developed on a Substrate-based blockchain? I came across this question, which suggests following the implementation approach of Acala. However, are there alternative methods to ...
Ganesh11's user avatar
  • 1,208
0 votes
1 answer
29 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 ...
donkeydonkey's user avatar
0 votes
1 answer
41 views

Verifying storage changes made during block hooks

I am having trouble understanding the verification process for storage changes that are applied during the on_initialize hooks of a pallet. From what I understand, imported blocks do not re-run any ...
blakeb's user avatar
  • 35
1 vote
1 answer
106 views

how to call smart contract function in custom pallet?

Is there any way to call ink! smart contract function in substrate custom pallet? We've found this answer where bare_call function is based on older version of contract_pallet. // This ends up calling ...
Ganesh11's user avatar
  • 1,208
0 votes
0 answers
74 views

Getting error after doing runtime upgrade to substrate v1.0.0

I am trying to do runtime upgrade of substrate blockchain which is running on 0.9.36 version to substrate version v1.0.0 . While doing runtime upgrade chain stops working and getting this error in ...
Karanvir Singh's user avatar
1 vote
1 answer
45 views

Substrate - Change logging library

Is there some way to change the logging library or at least the logging format? I need a way of having the logs output in JSON format. What I tried: Installed the tracing-subscriber pallet with json ...
Branimir Malesevic's user avatar
1 vote
1 answer
67 views

kusama upload/download bandwidth speed so low

I'm running a Kusama node with a actual network speed ranging from over 100MB/s to 500MB/s on both sides. However, I'm facing issues with slow block propagation time and low upload/download bandwidth ...
jay p's user avatar
  • 61
0 votes
2 answers
52 views

<C as TrieCacheProvider<H>>::Cache<'_>` does not live long enough

I found the exact same first issue here and I checked I don't have any duplicate dependencies. I also try cargo clean & cargo update command, nothing changes. ganesholi@Ganeshs-MacBook-Air ...
Ganesh11's user avatar
  • 1,208
0 votes
1 answer
43 views

Kilt SDK import breaks types

after adding the kiltprotocol/sdk-js to my front-end, I get the following two errors when importing the kilt module. Error 1: Type 'Codec | Codec[]' is not assignable to type 'InjectedAccountWithMeta[]...
Kazunobu Ndong's user avatar
1 vote
1 answer
21 views

Convert transaction pool entry into Call

How can I match on runtime Calls from my outer node? I essentially want to "trigger" the node once a type of extrinsic is submitted. It seems like I don't have an option to emit any kind of ...
blakeb's user avatar
  • 35
4 votes
1 answer
70 views

How to create signed extrinsic in outer node?

What is idiomatic way to submit signed extrinsic in outer node? Is it using BasicPool and submit_local? Would Rust example at the bottom be be good approach? If it is how to: properly choose period ...
klbrvik's user avatar
  • 91