Unanswered Questions
66 questions with no answers
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
62
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 ...
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?)
...
5
votes
0
answers
163
views
Why has finalization stopped?
So I have a validator_count of 2, and 1 as minimum_validator_count. My validator is always online. I had my friend make another validator, had it enter the active validator set, and then join in as a ...
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 ...
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
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 ...
3
votes
0
answers
72
views
Updating AssetId when using pallet_assets
I am trying to use the pallet_asset, but the AssetId type is giving me some trouble.
Try nbr.1:
Create a storage value TokenId that takes a u32
Create the AssetId from the u32 inside the storage:
...