Questions tagged [substrate-node]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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?
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 ...
0 votes
1 answer
113 views

Custom RPC sized array parameters

I have custom RPC, which looks like so #[rpc(client, server)] pub trait SomeRpcApi { #[method(name = "some_submitData")] async fn submit_data( &self, id: u64, ...
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 ...
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.]
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 ...
4 votes
1 answer
33 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 ...
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 ...
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>, ...
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 ...
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 ...
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 = ( // ...
1 vote
1 answer
67 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.
3 votes
1 answer
59 views

Get the raw hex from substrate

I'm trying to get the raw value of the transaction without using the websocket. For now I'm using a WebSocket for my application and I am in the process of removing it, I could find everything I ...
2 votes
1 answer
64 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. ...
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 ...
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://...
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 ...
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/...
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 ...
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. ...
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......
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.
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 ...
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 ...
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 ...
2 votes
1 answer
116 views

how to solve the sys error in substrate polkadot branch (polkadot-v0.9.43)

I have been integrating EVM(43 version) in 43 version of substrate. while adding files to runtime module i am getting sys error while building it .I want to know how to solve this error
-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 } ...
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 ? ...
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 ...
1 vote
1 answer
39 views

What happens to legacy contracts given breaking changes to cargo-contract v3?

In the cargo contract v3 release, breaking changes were made for how contracts are built (cdylib -> bin) and specifying no_main. I've found that cargo contract v2 produces contracts compatible with ...
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 ...
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-...
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 ...
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(&...
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 ...
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 ...
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 ...
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?
0 votes
1 answer
107 views

How to setup Substrate Private network to support more than 8 nodes

We are running a substrate private blockchain network. We are able to add a total of 8 nodes but are not able to increase more than that. For the 9th node: 9th node is not starting to sync after ...
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 ...
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 ...
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 ...
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 ...
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 ...
0 votes
1 answer
30 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/...
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 ...
1 vote
1 answer
54 views

How to properly get KeyPair from the LocalKeystore

Background I am currently working on a gadget for substrate that runs another software embedded within the node itself. This is similar to the beefy gadget. However, the software I'm using was ...
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 ...
3 votes
1 answer
79 views

Will we be able to use the BLS signature scheme to control funds?

After reading through the BLS related issues in the substrate repo, it isn't quite clear to me what type of support is planned for the BLS signature scheme. It seems like the primary goal is to ...