Questions tagged [substrate-node]

The tag has no usage guidance.

49 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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
5 votes
0 answers
74 views

I want to use Parity SCALE codec in Solidity? Is there any implementation of scale codec to decode bytes?

I want to decode bytes on the Solidity side that was decoded with scale codec. Is the any implementation of scale codec (decode) on the Solidity side?
rust.dev's user avatar
  • 509
5 votes
0 answers
48 views

How to use sp_tracing?

When I walk through the sp_tracing documents, it's an overview and does not show us how to use it I have some questions about sp_tracing: How to use it? What command that we run it? (Debug Mode?) ...
CocDap's user avatar
  • 616
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
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 ...
shamb0's user avatar
  • 41
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
3 votes
0 answers
33 views

How to use a custom syncing logic?

I want to create a node with a different syncing logic than SyncingEngine (I have my own struct that implements the same API as SyncingEngine). To be clear, I want to use the substrate NetworkService ...
Shahak Shama's user avatar
3 votes
0 answers
32 views

How to compare current date with a stored date in a Substrate blockchain module?

I'm working with a Substrate blockchain and have a structure with a field named end_date. I'd like to check if the current date is greater than end_date within a Substrate runtime module, but I'm ...
Mr Coder's user avatar
  • 873
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
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
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
47 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?
Yaser Ali's user avatar
2 votes
0 answers
42 views

Having trouble with the `ChainSpec` Type

I've updated the ChainSpec type from: pub type ChainSpec = sc_service::GenericChainSpec<GenesisConfig, Extensions>; to pub type ChainSpec = sc_service::GenericChainSpec<Result<...
Discardo's user avatar
  • 382
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. ...
BlockBird's user avatar
2 votes
0 answers
27 views

no matching package named `sc-network-statement` found

sc-network-statement = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } I am using this package from substrate ...
Ganesh11's user avatar
  • 1,208
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
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
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
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
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
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
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
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
0 answers
33 views

What does this log message from a collator node mean?

What does this log message from a collator node mean? Is it bad, should it be fixed or ignored? Error: Service(Client(Backend("Invalid argument: Column families not opened: col12, col11, col10, ...
Simson's user avatar
  • 1,080
1 vote
0 answers
58 views

How to get all the blocks when forking the chain?

I am using subalfred to fork my chain and was able to achieve it, I got the latest state of the old-chain to the forked-chain but the forked-chain is starting from the genesis block or we can say ...
Shubham Gupta's user avatar
1 vote
0 answers
51 views

After skipping epoch, not able to perform any extrinsic

I bump into Session changes on reversion question and tried out the solution given by @bkchr, there was no unexpected epoch change error after an epoch is skipped due to finalisation getting stopped. ...
Shubham Gupta'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
1 vote
1 answer
61 views

Rejected connection: Transport(handshake was not a GET request)

When I start my node in the M2, it is continuously showing this error .
Arunjot Singh'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
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
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
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
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
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
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
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/...
Ganesh11's user avatar
  • 1,208
0 votes
0 answers
25 views

Not able to retrieve value for given key when new key-value pair inserted

Crate used:- https://github.com/paritytech/trie #[test] fn test_two_assets_memory_db() { let mut memdb = MemoryDB::<BlakeTwo256>::new(&[0u8]); let mut root = H256::zero(); let ...
ZKT's user avatar
  • 93
0 votes
1 answer
34 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....
donkeydonkey's user avatar
0 votes
0 answers
68 views

how to add validator in network using subxt

I am using subxt library . I have downloaded metadata from chain using this url **wss://rpc.polkadot.io:443 ** . I want to know how can i add validator to the chain using subxt library .
Karanvir Singh's user avatar
0 votes
0 answers
45 views

Using http calls outside of offchain worker context

Is it possible make http requests outside of an offchain worker context. It seems like the only thing that is preventing http calls is simply that OffchainWorkerExt is not registered in the runtime. I'...
fastfist's user avatar
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 ...
Anbu 's user avatar
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, ...
Ivan Temchenko's user avatar
0 votes
0 answers
10 views

develop consensus before packing

I need to develop consensus before packing, but I couldn't find anything on the subject online. Could someone kindly explain it to me and, if possible, show me how to do it in substrate? The goal is ...
Mohamad Al Zohbie'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