Unanswered Questions
77 questions with no upvoted or accepted answers
8
votes
1
answer
126
views
Pallet session: What is the purpose of the `proof` argument on the `set_keys` extrinsic?
The set_keys extrinsic in pallet_session has a second argument proof, which seems to be intended as an ownership proof of the keys.
Looking at the body, there is a call to ownership_proof_is_valid.
...
6
votes
0
answers
215
views
Subxt call to custom pallet method returning `wasm 'unreachable'` - (`TaggedTransactionQueue_validate_transaction`)
So I am trying to submit extrinsics to a running parachain node using subxt, but encounter a Codec error.
The parachain is based on the substrate-parachain-template, the relay chain is compiled ...
5
votes
0
answers
42
views
Benchmarks not getting skipped with Err(BenchmarkError::Skip)
I am using the pallet_xcm_benchmarks, in the config for pallet_xcm_benchmarks::generic,
I have used
impl pallet_xcm_benchmarks::generic::Config for Runtime {
fn worst_case_asset_exchange() -> ...
5
votes
0
answers
49
views
Adhering to size limit of a block
We do track weight during block creation/block import, but weight only cares about execution time and with 2D weights also about storage proof size.
We do keep track of size in propose here but only ...
5
votes
0
answers
204
views
How to check if a pallet can be compiled to no-std/WASM?
How to check if a pallet can be compiled to no-std/WASM?
I ran:
cargo build --no-default-features --target wasm32-unknown-unknown
But this didn't work. IIUC, we need some ENV to build the pallet to ...
5
votes
0
answers
62
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?)
...
4
votes
0
answers
61
views
What is the core functionality (pallets) that should be part of the specification
We are working on an alternative implementation of the Polkadot protocol, but since the spec is missing a lot of details regarding the Runtime, we rely heavily on the Substrate implementation.
So we ...
4
votes
1
answer
83
views
How to do a manual implementation for 'AccountId'
I am working on creating a custom map which takes T::AccountId as a perimeter:
#[pallet::storage]
#[pallet::getter(fn declaration_map)]
pub(super) type Declarations<T: Config> = StorageMap
<
...
3
votes
0
answers
39
views
Why is the index of a pallet a u32(usize) instead of u8 when queried?
I'm implementing a flow where I first ask what index a pallet has with the QueryPallet xcm instruction, and then construct a call to use with Transact.
I see that to construct manually an encoded call ...
3
votes
0
answers
25
views
Difficulty Storing Consensus-Derived Value in Storage: Observing Value in Pallet Log but Not in Storage
I'm trying to store a value obtained from the consensus, specifically sc_consensus_babe::fn import_block. While I can observe the value in the pallet through the log, it doesn't seem to be stored in ...
3
votes
0
answers
43
views
How to assign some number to the miners in POW substrate chain?
I'm working with POW substrate chain and I want to assign some number to the miners according to the work they have done earlier. Is it possible? If yes can we fetch those numbers during the block ...
3
votes
0
answers
38
views
Are justifications of finalized block canonical?
Justifications are external to the signed part of the Substrate block, meaning they change after block is produced initially.
However, I'm wondering if there is any assumption in Substrate (or ...
3
votes
0
answers
82
views
Combining instanced pallets w/ non-instanced pallets
Overview
We have a system that leverages both instanced pallets and non-instanced pallets. Specifically, we have pallets that maintain on-chain merkle trees. We can have many instances of these ...
3
votes
1
answer
321
views
How to implement a POC for a new consensus algorithm in substrate?
I am currently working on a substrate project that uses the PoA consensus algorithm. I would like to implement a POC for a new consensus algorithm. I have some experience with substrate but I'm new to ...
3
votes
0
answers
56
views
Complete code flow understanding of substrate and frame pallets
As a substrate developer I have gained some experience in writing pallets, benchmarking extrinsincs and aggregating those to the runtime. But now I wanted to understand the system very deeply. I am ...