Questions tagged [substrate-node]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
6 votes
1 answer
114 views

cannot create module: instance allocation for this module requires 74376 bytes which exceeds the configured maximum of 65536 bytes

Try in to benchmark node pallets after Polkadot upgrade from 0.9.36 to 0.9.38 and get cannot create module: instance allocation for this module requires 74376 bytes which exceeds the configured ...
Dzmitry Lahoda's user avatar
5 votes
1 answer
85 views

Custom deposit function for Substrate runtime

As you're aware, the latest version of substrate removed the need for manual memory management, hence when creating the new SC - tokens are automatically reserved from caller's balance. To my ...
Raid Ateir's user avatar
5 votes
1 answer
112 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
5 votes
0 answers
128 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
  • 479
5 votes
0 answers
53 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
86 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
56 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
  • 658
4 votes
2 answers
59 views

Need to migrate u32 to Vec<T::AccountId>

I have one storagemap which stores u32 values, now I need to migrate this to Vec<T::AccountId> How to do this?
Ajit's user avatar
  • 827
4 votes
1 answer
45 views

Facing difficulty in fetching data through lite_json

Api data { "student": [ { "listing": { "price": 54, }, }, ] } I’m using below code for fetching data till listing: let student = match val....
Ajit's user avatar
  • 827
4 votes
1 answer
91 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
  • 106
4 votes
1 answer
97 views

This function takes 2 arguments but 1 argument was supplied

I'm working on a Substrate project, and I have the following storage definition: #[pallet::storage] #[pallet::getter(fn bids)] pub(super) type Bids<T: Config> = StorageDoubleMap< _, ...
Mr Coder's user avatar
  • 893
4 votes
1 answer
50 views

Custom session keys in Chainspec for Mainnet config

I've seen some Substrate repo's where the SessionKeys (Aura, Babe, Grandpa, etc) are used with unchecked_into() .While the stash/controller keys are only used with into(). These are some examples: ...
Discardo's user avatar
  • 424
4 votes
1 answer
39 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
3 answers
1k views

Difference between HTTP server, RPC server, and WebSockets in the context of Substrate framework?

In the context of the Substrate framework, I'm trying to understand the differences between an HTTP server, an RPC server, and WebSockets. Specifically, how do these communication mechanisms relate to ...
UPENDRA SINGH's user avatar
3 votes
1 answer
53 views

Best Practice for the Structure of a Big Pallet

My pallet has over 1,000 lines of codes so far(already separated implementation of the call functions). Over 30 call functions which are pretty messy to maintain. Should I split them into small ...
Stefan Muto's user avatar
3 votes
1 answer
63 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 ...
Dashelldot's user avatar
3 votes
1 answer
85 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 ...
user2959071's user avatar
3 votes
1 answer
130 views

Fork Chain using fork-off-substrate?

I'm trying to fork my chain using fork-off-substrate but when running the new chain using the genesis file i.e fork.json is does not produceor finalize the blocks. How can I solve this or what is the ...
Amit Kumar Yadav's user avatar
3 votes
1 answer
48 views

Add ed25519 address to chain_spec.rs

Trying to add an ed25519 address to the chain_spec file. The node_template has the defaults vec![get_account_id_from_seed::<sr25519::Public>("Alice"), We would like to add a custom ...
donkeydonkey's user avatar
3 votes
1 answer
44 views

What is the meaning of trait `Member`?

Indeed, I don't understand this statement A type that can be used in runtime structures in docs: https://paritytech.github.io/substrate/master/sp_runtime/traits/trait.Member.html I noticed that some ...
CocDap's user avatar
  • 658
3 votes
2 answers
180 views

How node and runtime are connected?

When we run a substrate client cargo run -- --dev we run a substrate-node. The business logic is defined on the pallets composed by construct_runtime! inside the runtime. So which part of the node is ...
Abishek Bashyal's user avatar
3 votes
0 answers
35 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
3 votes
1 answer
43 views

How to add vector fields in the block header?

I want to add a vector fields in the block header of substrate chain. Is this possible? If yes, How can i do that? Do we have any reference code for it? Thanks in advance
Deepak Chaudhary's user avatar
3 votes
1 answer
76 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
3 votes
1 answer
75 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
74 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
3 votes
0 answers
34 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
37 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
  • 893
3 votes
1 answer
50 views

Build error on Substrate Toolbox - rust nightly not installed

I'm customising the srtool (Substrate runtime toolbox) for our chain built based on substrate. The srtool docker image was built successful, but when Github running test against myChain, it failed ...
Steven Gong's user avatar
2 votes
2 answers
45 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
2 votes
1 answer
96 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
2 votes
2 answers
189 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
2 votes
2 answers
58 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
1 answer
108 views

How to add initial nominators in the customSpec.json?

I want to generate a customSpec.json where i can manually add the accounts of the initial_nominators. I've seen the code chain_spec.rs where we in the fn testnet_genesis there is initial nominators. ...
Arunjot Singh's user avatar
2 votes
1 answer
26 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
2 votes
1 answer
45 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
2 votes
1 answer
79 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,207
2 votes
1 answer
188 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
2 votes
2 answers
88 views

Problems adding trusted Nodes on different machines on Windows 11(WSL)

I Cannot get the two Substrate Nodes to Work together in a local Network between two different PC running on Win11 + WSL I have followed the Tutorial and everything seems ok till the point that i am ...
amazing's user avatar
  • 63
2 votes
2 answers
136 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
  • 23
2 votes
1 answer
71 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
2 votes
1 answer
41 views

Benchmarking an extrinsic that validates a signature

I have an extrinsic in one of my pallets that looks validates a signature over a message, which is separate from the actual extrinsic being submitted. The code can be simplified to look like the below ...
Nate Armstrong's user avatar
2 votes
1 answer
40 views

Configure test network file

I am trying Simulate Parachain tutorial, in configure the test network settings, there is step to create a configuration file config.toml. Can we create that file in any directory or should we need to ...
Ganesh11's user avatar
  • 1,207
2 votes
1 answer
73 views

Steps to connect chain to rococo test

I have chain built using substrate-node-template. Now what are the steps to connect my chain to Rococo test network?
Ganesh11's user avatar
  • 1,207
2 votes
1 answer
164 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
Karanvir Singh's user avatar
2 votes
1 answer
33 views

How to obtain Polkadot release version?

How can I obtain the Polkadot release version in Rust that my node was compiled against? I want to log it at node startup. e.g. Polkadot-0.9.42
Robert La Ferla's user avatar
2 votes
0 answers
31 views

how can we add external links on the proposal?

I have created a custom chain using Substrate version 0.9.36, and I've been using the governance module. When adding a proposal, there's a default column for external links set to "none." I ...
Gagandeep Dogra ATR594's user avatar
2 votes
0 answers
50 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
60 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
1 answer
54 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