Unanswered Questions
159 questions with no upvoted or accepted answers
6
votes
0
answers
57
views
BlockBuilderApi<Block> Trait bounds within node/src/service and rpc
I am having a problem satisfying all of the trait bounds within the node crate. I am using the polkadot-v0.9.17 branch of substrate, as was recommended on another question here.
It is calling ...
5
votes
0
answers
31
views
Are Offences ever pruned?
In our runtime we have a custom implementation of offence reporting. I want to write an adapter for grandpa equivocation offences (implementing the ReportOffence trait), and have been using the ...
5
votes
0
answers
29
views
How to receive P2P messages using sc-network-gossip
Overview
I'm interested to understand how to use sc-network-gossip's GossipEngine to receive P2P messages, not just gossip messages. The motivation is that I would like to send specific peers specific ...
5
votes
0
answers
27
views
Outbound network traffic linearly growing with offchain protocol and recommendations for handling traffic growth
Issue
We are experiencing a behaviour on our standalone/parachain node where the Network Bps on our cloud provider linearly increases throughout the lifecycle of our protocol. The increase continues ...
5
votes
1
answer
45
views
What factors determine who can peer with my node?
From a security standpoint I'd like to understand who can peer with my node. Let's say I make the chainspec public, and someone comes along with a different node binary, and peers with my node, with a ...
5
votes
0
answers
42
views
How to extend a `custom RPC` service to query the `off-chain` storage?
There are many docs/tutorials explaining how to extend the node's RPC service with a Custom RPC to query the Runtime storage. What I could not figure it out yet, is how to do the same but to query the ...
4
votes
0
answers
26
views
Is the WASM blob created from ink! contract always deterministic
The contract's source code is provided during the contract verification on a block explorer (or some other source verifier).
The block explorer needs to compile that source and verify if the generated ...
4
votes
0
answers
51
views
Why are parachain candidate blocks from only one collator being backed and added on-chain at a time when there are multiple collators?
Environment:
Test machine: 1x mac-m1-pro local
Relay chain (rococo-local): 2x relay chain nodes
Parachains: 2x collators (Alice and Bob)
Parachain consensus: aura
I started the network locally and ...
4
votes
0
answers
45
views
How to use the default Substrate CLI rpc-cors values without using rpc-cors=all for a Collator node and connect from Polkadot.js Apps
I want to be able to connect a collator node using https://polkadot.js.org/apps that is based on the substrate-parachain-template using branch 'polkadot-v0.9.18' and is being run as a parachain in ...
3
votes
1
answer
97
views
Local network does not change validator set
Currently, we have a local test net with 4 substrate nodes using this runtime which has the staking and session pallets. 2 nodes (Alice and Bob) are validators, placed in the chain spec json file and ...
3
votes
0
answers
25
views
Multiple instances of Treasury pallet
I wondered how to create multiple instances of the pallet Treasury and couldn't find any examples so far.
One example is pallet Membership, which doesn't have any dependencies, while the Treasury ...
3
votes
0
answers
49
views
Calling CLI subcommand through different terminal after running the node
I'm trying to set some off-chain storage through a different terminal using a custom subcommand after starting up the node.
Question here is:
Is there any way to call the custom CLI subcommand in the ...
2
votes
0
answers
11
views
What's the best practice to do the tests before runtime upgrade?
We use https://github.com/maxsam4/fork-off-substrate and try-runtime before.
As the chain state goes larger and larger, it was hard to export/fetch the chain state.
2
votes
0
answers
27
views
Can't read storage item from migration script, however can read from polkadot.js.app
Here are the details, I need to do a storage migration for a pallet. I can read the storage item from the polkadot.js.app, as shown below:
however, I can not read it from migration script(returned ...
2
votes
1
answer
31
views
How to emit events from inner contracts
let's say we have a contract which calls other contract's function that emits an event. What is the approach to emit the event coming from the inner contract's message?
Currently, there is only an ...