Questions tagged [substrate-node]
The substrate-node tag has no usage guidance.
127
questions
0
votes
0
answers
4
views
Cannot build my substrate node on nixos
my node builds perfectly fine on ubuntu, arch, and debian. On my nixos machine, I can build the node-template without any errors. I can also build the kitchensink node in polkadot-sdk. Buy for some ...
0
votes
0
answers
7
views
is the endpoint TransactionPaymentApi_query_info usable on current Westend testnet?
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
0
answers
4
views
WS transport error: i/o error: Broken pipe (os error 32); terminate connection
I am submitting an unsigned extrinsic using subxt crate in rust.
I have a simple u64 number inside StorageValue called Nonce which keeps track of number of transactions submitted (needed for ...
0
votes
0
answers
11
views
"Troubleshooting Block Production Issue After Switching to ECDSA Signature Scheme in Substrate-based Blockchain"
I've transitioned the signature scheme to ECDSA on a Substrate-based chain, following Moonbeam's approach. However, it's worth noting that Moonbeam utilizes Aura for block production, whereas ...
1
vote
1
answer
38
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": "...
5
votes
0
answers
94
views
+50
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
30
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?
1
vote
0
answers
9
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
0
answers
43
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 ...
0
votes
0
answers
11
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>,
...
1
vote
1
answer
93
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
22
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
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.
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://...
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 ...
0
votes
0
answers
21
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
52
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
8
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
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.]
2
votes
0
answers
42
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 ...
2
votes
2
answers
54
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 ...
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
43
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 ...
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
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 ...
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 ...
1
vote
1
answer
25
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(&...
-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 }
...
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
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.
1
vote
1
answer
115
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
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
2
answers
87
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
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
151
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 ...
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 ...
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 ...
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 ...
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 ...
2
votes
1
answer
139
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:...
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
44
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 ...
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 ...
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 ...
1
vote
1
answer
107
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 ...
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 ...
1
vote
1
answer
47
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 ...