Questions tagged [substrate-node]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
6 votes
1 answer
108 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
79 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
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
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
2 answers
51 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
  • 775
4 votes
1 answer
71 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
4 votes
1 answer
82 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
  • 873
4 votes
1 answer
42 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
  • 382
4 votes
0 answers
68 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
3 answers
972 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
46 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
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 ...
Dashelldot's user avatar
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 ...
user2959071's user avatar
3 votes
1 answer
43 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
40 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
  • 616
3 votes
2 answers
171 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
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
3 votes
1 answer
42 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
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
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
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
1 answer
98 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
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
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 ? ...
Floy's user avatar
  • 21
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
2 votes
2 answers
72 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
1 answer
36 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
36 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,208
2 votes
1 answer
68 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,208
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
Karanvir Singh's user avatar
2 votes
1 answer
106 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
2 votes
1 answer
31 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
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
52 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
67 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
2 answers
52 views

How to add funds to Treasury?

Someone please point me how to add funds in Treasury?
Ganesh11's user avatar
  • 1,208
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
1 vote
1 answer
63 views

Getting "Contract Reverted!" error with "TooManyTopics" dispatch error when calling mint function in OpenBrush PSP37 smart contract

I'm working on adding events to an OpenBrush PSP37 smart contract and deploying it using Substrate Contract UI. However, when I try to call the mint function, I encounter the following error: Contract ...
UPENDRA SINGH's user avatar
1 vote
1 answer
73 views

sudo.Sudid Error: BadOrigin on polkadotjs

I am adding asset pallet to the runtime. When I try to interact with it with sudo > asset > create, I got error: BadOrigin issue. Can someone please help me why I am getting this issue. I found ...
Ganesh11's user avatar
  • 1,208
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