Questions tagged [substrate-node]

Questions about the included blockchain node in the main Substrate code-base.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

Must all code in projects using substrate /client/* and sc-* code be GPL licenced?

The substrate /client/* and sc-* code is licenced under GPL3. GPL3 contains this clause (emphasis mine): 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the ...
  • 179
0 votes
0 answers
5 views

Rust WASM toolchain not installed, please install it! -- Basilisk node

I know that similar questions have been asked before but I am not able to resolve this issue with my setup. I am trying to run a basilisk node but keep running into the errors below. The error log: ...
  • 101
0 votes
0 answers
12 views

Block import crashes on block where authorities have changed

We recently upgraded our chain from substrate V3 to polkadot-0.9.24. When we try to sync a node from 0, the block import fails on the first block where the authorities were changes (some block creator ...
0 votes
1 answer
10 views

Collect some transfer fees before any transaction

I want to collect some transfer fee besides base, weight, length fee before user makes a transaction. Like if the base + weight + length fee = 0.1 And For every transaction I want to add additional 0....
0 votes
1 answer
15 views

Log messages not displayed

It seems like the substrate client::cli::init code is not properly initializing the logger: any log::info! calls (or even log::error! calls) are not being shown in the terminal. All println! outputs ...
  • 51
1 vote
1 answer
23 views

Compare static account stored in StorageMap

I have made a custom pallet that is storing a map of accountId and u32 in StorageMap Key: accountId("5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY") value: u32 After storing it, I want ...
0 votes
2 answers
29 views

What exactly is the payload?

I am trying to understand what is in a transaction specifically the payload. While the documentation references the term payload, it is not explicit/clear about what exactly it is. It seems to ...
  • 103
0 votes
1 answer
25 views

Contracts in substrate 3.0

A customer has a substrate blockchain based on Tag 3.0.0 It uses pallet-contracts = { git = "https://github.com/paritytech/substrate.git", tag = "v3.0.0" } The problem is that ...
1 vote
1 answer
13 views

cannot find function `memory_teardown` in module `sandbox`

I am trying to add evm_pallet with NPOS consensus( i.e babe and staking) but while adding evm_pallet to runtime getting error.. active toolchain 1.59-x86_64-unknown-linux-gnu (default) rustc 1.59.0 (...
0 votes
0 answers
52 views

1002: Verification Error: Runtime error: Execution failed: while "Authorize access to third node"

https://docs.substrate.io/tutorials/get-started/authorize-specific-nodes/#identify-the-account-keys-to-use Following this tutorial, while trying to execute the "addWellKnownNode()" ...
0 votes
0 answers
16 views

How to do a hard fork and go to a previous block on the chain?

Seems that I cannot find anything that explains how to do hard forks and revert the chain to previous block/state.
0 votes
1 answer
10 views

How to read storage when using ValueQuery

I have the below code, if you see I am storing the ContractSender struct as OptionQuery. Later on, I am trying to read the data from the Struct, but was not able to. #[pallet::storage] #[pallet::...
1 vote
1 answer
10 views

What is Offchain Call in TransactionSource?

What is an Off-Chain Call in this scenario? for instance an Off-Chain Worker, or an Off-Chain Call source: https://github.com/paritytech/substrate/blob/master/primitives/runtime/src/...
1 vote
1 answer
15 views

How to query the current consumed weight in an extrinsic?

Hi Substrate Community, is there any way to get the current block weight? This is especially useful, when deciding in on_finalize if there is space left to put in some logic. I know, that on_finalize ...
  • 135
1 vote
0 answers
14 views

How to call a function from custom pallet using api.tx?

I made a custom pallet and wants to access its method using a extrinsic call like api.tx.<module>.<method> but was not able to do that, do i need to implement it in blockchain code or it ...
0 votes
1 answer
19 views

how to launch a bootnode and necessary parameters

What are the necessary parameters that substrate bootnodes need to configure, --sync Full --pruning archive --node-key Is it ok? Other nodes synchronize blocks by linking bootnodes
  • 51
1 vote
1 answer
15 views

Connect external parachain node to local network relay chain

I currently have a local relay chain with 4 validators and 2 collator nodes from 2 different parachains running. I want to connect another node that is out of network to one of the parachains. Is this ...
  • 11
3 votes
1 answer
47 views

The election failed. No new era is planned

I set up the private network of 8/10, everything is working fine, all the validators validate the blocks but after the an era I am facing an issue that the staking.StakingElectionFailed. The election ...
0 votes
0 answers
11 views

Is sc_network safe to use for offchain gossip protocols in a parachain context?

I want to leverage the Substrate peerset to build an offchain gossip protocol. This protocol will send lots of messages at the beginning of every session. Are there reasons this would be a bad idea? ...
2 votes
1 answer
33 views

Questions on transaction mortality

In the source code where transaction mortality is defined, the comments say: Create a new era based on a period (which should be a power of two between 4 and 65536 inclusive) and a block number on ...
  • 658
0 votes
0 answers
14 views

How did kusama and Polkadot integrated their respective ledger nano app via Polkadot ui?

Polkadot and kusama respectively have integrated their platform with ledger hardware wallet. After reading documentation I came to know that integrating a blockchain with ledger requires a nano app ...
1 vote
1 answer
152 views

error[E0158] when testing default contract from flipper

https://docs.substrate.io/tutorials/smart-contracts/prepare-your-first-contract/ Hi, I'm working on the above tutorial and after running the cargo +nightly test command, I see the following error. ...
1 vote
1 answer
31 views

Getting "UnknownBlock: State already discarded" while fetch block data from Validator node

I am getting follwing error while fetching Grandpa authority from Validator node:- [2022-09-12T12:06:27Z INFO ws] Queuing connection to wss://blockchain/ [2022-09-12T12:06:27Z INFO ...
1 vote
0 answers
25 views

Nginx Websocket Proxy Error - 502 Bad Gateway

I am getting this error below from nginx [error] 32#32: *4 upstream prematurely closed connection while reading response header from upstream, client: 172.21.0.1, server: , request: "GET / HTTP/1....
0 votes
0 answers
19 views

Substrate Node compiles, but does not run

When i run my substrate based node, i get Error: Service(Client(VersionInvalid("host doesn't provide any imports from non-env module: __wbindgen_placeholder__:__wbindgen_describe"))).
1 vote
1 answer
17 views

How's the `pallet::extra_constants` different from `pallet::constant`. How to choose?

I'm trying to understand the #[pallet::extra_constants] and how it's different from #[pallet::constant]. And appropriate scenario for the same.
1 vote
0 answers
9 views

Don't get the detailed output as shown in the tutorial when I launch a new node

I am new to the substrate and setting it up. I do not get the output fields as shown in the "Review the node messages displayed" section of the tutorial here on how to launch a new node. I ...
  • 111
0 votes
1 answer
18 views

Hitting compilation issues while testing Substrate PR#11818 - Allow `construct_runtime` to take cfg attributes for pallets

Find the source I have been working with at: https://github.com/al3mart/substrate-node-template/tree/al3mart/runtime-featuregated. While building a node using the feature-gated runtimes added in https:...
2 votes
3 answers
157 views

Stress test a substrated based blockchain

Are there any tools/script yo stress a substrate bases blockchain? Generating transfers between accounts should be Ok. I think I saw one a few months ago but I can not find it :-( Thanks very much. ...
0 votes
2 answers
40 views

Smoldot Documentation

How to run smoldot repository code and connect with our substrate based chain or substrate node ? On official documentation of smoldot on github is not in detail .Please answer here complete way to ...
1 vote
1 answer
19 views

Node client updates require where they should not be according to Polkadot's release notes

I am working on a Substrate node update. I am following Polkadot's releases not to skip migrations. Some node runtime updates require node client updates. This information can be found in Polkadot's ...
1 vote
0 answers
29 views

ink Smart Contract "dies" after the node runtime update

I am working on Substrate node update. During the testing, I found out that the deployed smart contract (incrementer, tag: v3.0.0-rc4) "dies" during the node updates from: v0.8.27 to v0.8....
3 votes
1 answer
78 views

<wasm:stripped> printed when logging from the runtime

I'm trying to debug in pallet-staking to figure out something about how validators/nominators join NPoS network. https://github.com/paritytech/substrate/blob/master/frame/staking/src/pallet/impls.rs#...
  • 198
0 votes
1 answer
20 views

Substrate node template: ./scripts/docker_run.sh command does not work

I am trying to execute the above command but have the following issue: [+] Running 7/7 ⠿ dev Pulled ...
0 votes
1 answer
19 views

Substrate Node to light Client

How can I make substrate node light as light client ? If we want to build a light client can it be possible to make changes in substrate node and make it a light client.
0 votes
0 answers
20 views

Why is it that the signature created using polkadot api is valid, but verifying that signature using substrate library is invalid?

The js code uses polkadot api, util-crypto and extension-dap const { signature } = await signRaw({ address: account.address, data: payload, type: 'bytes' }); // ...
  • 101
0 votes
1 answer
43 views

How to get the total supply of the smart contract in pallet?

In my pallet I want to get the total supply of a given smart contract ERC20. How can I do this?
  • 183
1 vote
0 answers
27 views

Skipping node client's intermediate versions

The substrate node consists of 2 parts: runtime and outer node (or node client). The Substrate has forkless upgrade functionality for the runtime updates. Sometimes node client should be updated first ...
0 votes
1 answer
27 views

Tutorial - Simulate a network: I've started 4 nodes (Alice/Bob/Charlie/Eve), but not all of the nodes show '3 peers'

https://docs.substrate.io/tutorials/get-started/simulate-network/ While working on this tutorial, I decided to go beyond the Alice and Bob nodes and also started Charlie and Eve nodes. While adding ...
0 votes
1 answer
38 views

ink contract string to AccountId conversion

pub fn send( &mut self, address : String ) -> Result<()> { //some type conversion address->account self.env().transfer(account, value) I want to write methods ...
  • 1
1 vote
1 answer
17 views

exposing RPC/ws publicaly

I want to expose an RPC/WS endpoints publicly. What mesures should I take into consideration? Should I just expose RPC/WS using substrate options --unsafe-rpc-external --unsafe-ws-external? But as I ...
  • 101
1 vote
1 answer
29 views

what is Substrate Files Decentralised storage?

Can anyone please give me any link or docs where I can find more about Substrate Files decentralized storage? I have gone through this link: https://github.com/polkadot-js/apps/pull/6106 Is there any ...
1 vote
1 answer
31 views

Framework for light client

Is there any framework available by using it we can create light client for interoperable blockchains/substrate based blockchains
0 votes
1 answer
23 views

Unable to author block in slot 270671004,. `can_author_with` returned: `spec_name` does not match

I have changed the name on my spec.json and I am getting this erro Unable to author block in slot 270671004,. `can_author_with` returned: `spec_name` does not match `X` vs `node-frontier-template` ...
  • 101
0 votes
1 answer
17 views

Why my solo chain block time is 12 seconds when set to 6?

I have an my own Substrate node (not a parachain, based on the template-node, so Aura consensus is used) and I changed the block time to 6 seconds in the runtime/src/lib.rs by setting pub const ...
0 votes
2 answers
15 views

bootstrap a peer with a specific nodeId

If you have node keys (generated using subey), is it possible to use them to boot a peer with the corresponding peerId? is it possible to import the keys and thus have the same peerId without using --...
  • 101
0 votes
1 answer
24 views

frame-benchmarking version conflict

Below is the cargo.toml file of one of my pallet. [package] name = "escrow" version = "3.0.0" edition = "2018" authors = ['Substrate DevHub <https://github.com/...
0 votes
1 answer
25 views

Loose coupling with T::AccountId

My pallet A: pub trait TraitInPalletA<AccountId> { fn do_somthing( address: AccountId, ) -> DispatchResult; } impl<T: Config> TraitInPalletA<T::AccountId> for ...
0 votes
0 answers
15 views

Are messages on parachains buffered on the network differently than they are in standalone environments?

We are adding custom networking/gossip logic to our codebase to handle other off-chain protocols over the gossip network. We experience reliability issues in the parachain environment that are both ...
0 votes
2 answers
31 views

How to query for All Pallets StorageVersions

Is there an easy way to get a list of all pallets storage versions? An output like this: [ Palletname, StorageVersion ] Is it possible to query using curl and the rpc for the storage version of all ...
  • 131

1
2 3 4 5
7