Questions tagged [substrate-node]
The substrate-node tag has no usage guidance.
95
questions
1
vote
1
answer
14
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
53
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
24
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
48
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
24
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
119
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
38
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
93
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
15
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 ...
1
vote
1
answer
48
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
99
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
18
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
32
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
23
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
38
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
92
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
46
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
28
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 ...
1
vote
1
answer
60
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 ...
0
votes
2
answers
40
views
<C as TrieCacheProvider<H>>::Cache<'_>` does not live long enough
I found the exact same first issue here and I checked I don't have any duplicate dependencies. I also try cargo clean & cargo update command, nothing changes.
ganesholi@Ganeshs-MacBook-Air ...
0
votes
1
answer
39
views
Kilt SDK import breaks types
after adding the kiltprotocol/sdk-js to my front-end, I get the following two errors when importing the kilt module.
Error 1:
Type 'Codec | Codec[]' is not assignable to type 'InjectedAccountWithMeta[]...
1
vote
1
answer
16
views
Convert transaction pool entry into Call
How can I match on runtime Calls from my outer node? I essentially want to "trigger" the node once a type of extrinsic is submitted. It seems like I don't have an option to emit any kind of ...
4
votes
1
answer
55
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 ...
0
votes
1
answer
27
views
How to hold nft price until all nft are sold?
We have created nft-marketplace in substrate, 1 collection has 100 NFT. We only need to send all the amount of nft only after all nft are sold and until we wan't to hold the amount somewhere. How to ...
0
votes
1
answer
29
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/...
2
votes
0
answers
30
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 ...
1
vote
1
answer
27
views
How to write integration test cases for ink?
I am new to substrate and ink, while following ink documentation I got to the testing part and want to write integration tests. Can someone help me with it or point to the documentation or resources ...
2
votes
1
answer
24
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
...
1
vote
0
answers
24
views
What happens to legacy contracts given breaking changes to cargo-contract v3?
In the cargo contract v3 release, breaking changes were made for how contracts are built (cdylib -> bin) and specifying no_main.
I've found that cargo contract v2 produces contracts compatible with ...
1
vote
1
answer
45
views
What after slot assigned?
We now assigned slots here.
and I can see my paraId in Network->Parachains->Overview section.
I also started the collator node but not blocks are producing. this is log after running collator ...
0
votes
1
answer
11
views
Do you know any ready-to-start substrate based blockchain that I can take as fundament for my blockchain?
Is there any ready open blockchain to start? I need the one with staking and with opportunity to make new tokens. To send tokens with other users in this blockchain. Or maybe someting close to this.
I ...
0
votes
2
answers
33
views
A blockchain to read events from another blockchain
I'm working on an idea where I would want my substrate-based blockchain (let's name it Blockchain A) to read events from another substrate-based blockchain (let's call it Blockchain B) and perform ...
0
votes
1
answer
9
views
Token Symbol doesn't change in extend-parachain-template
I have changed properties of token here github repo, but symbol of token doesn't change while running node in dev mode ./target/release/parachain-template-node --dev. Is this because of parachain?
1
vote
1
answer
26
views
I want to implement NFT purchasing function in the marketplace based on a substrate node
Now I am trying to implement NFT purchasing functionality based on a substrate node.
I got this function from the polkadot js documentation.
buyItem(collection: u32, item: u32, bid_price: u128)
...
0
votes
2
answers
65
views
unexpected argument '--ws-port' found
I am preparing local relay chain from this tutorial. Configure polkadot and added raw-local-chainspec.json file but while running first validator, it gives this error.
ganesholi@Ganeshs-MacBook-Air ...
0
votes
1
answer
56
views
Can't configure the test network settings
I am trying to Configure the test network settings. I am following this tutorial.
This is my config.toml file
[relaychain]
default_command = "./binaries/polkadot/polkadot"
default_args = [&...
2
votes
1
answer
30
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 ...
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 ...
2
votes
1
answer
56
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?
2
votes
1
answer
51
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
1
vote
1
answer
42
views
I got this error while building a blockchain
Encountered the following error while simulating a network when running the command:
./target/release/node-template purge-chain --base-path /tmp/alice
--chain local
I got error indicating
/tmp/...
1
vote
1
answer
18
views
Not able to connect via archive node to my network
I am trying to connect a new peer with archive-node instead of validator-node but I am unable to enter the network it shows peers(0), but as soon as I give --validator tag the new peer start syncing. ...
1
vote
2
answers
41
views
How to add funds to Treasury?
Someone please point me how to add funds in Treasury?
0
votes
1
answer
15
views
proposal not funded in pallet_treasury
I am using pallet_treasury. I have created proposal and verified it. I have set SpendPeriod in min. Even after 1 min proposal doesn't get funded. What I am missing here? Why it's not working? Someone ...
0
votes
2
answers
27
views
Difference between EitherOfDiverse vs EnsureSigned inside pallet config?
When using this one, I get BadOrigin as in screenshot,
type ApproveOrigin = EitherOfDiverse<
EnsureRoot<AccountId>,
pallet_collective::EnsureProportionAtLeast<AccountId, ...
1
vote
1
answer
18
views
Understanding the persistence of historical block events despite automatic removal by the System pallet in Substrate
In the Substrate documentation, I came across a statement stating that at the beginning of a new block, the System pallet automatically removes all events that were stored from the previous block. ...
0
votes
1
answer
45
views
I got this error while doing simulating a network when building a blockchain
I encountered the following error while simulating a network when running the command:
./target/release/node-template purge-chain --base-path /tmp/alice --chain local
i got error indicating /tmp/...
1
vote
1
answer
40
views
How to properly get KeyPair from the LocalKeystore
Background
I am currently working on a gadget for substrate that runs another software embedded within the node itself. This is similar to the beefy gadget. However, the software I'm using was ...
0
votes
1
answer
30
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....
1
vote
0
answers
24
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, ...