Unanswered Questions
124 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?)
...
5
votes
0
answers
290
views
XCM Barrier blocked execution: when transferring XC-20 between 2 local Moonbase parachains
The setup is:
polkadot-launch
1 relay chain: polkadot-0.9.18 rococo
2 parachains: moonbeam-0.24.0 moonbase-local
paraId 1000
paraId 1001
open hrmp channel via polkadot-launch
Transferring DOT ...
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
74
views
XCM via governance
Hi All I am currently embarking on trying to send funds from the treasury via XCM
I am fairly certain this isn't possible right now because the treasury origin does not have send rights. I am ...
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
60
views
Failed to execute hrmp open request on polkadot
We recently sent XCM messages from Phala to Polkadot to send HRMP open requests to PolkaDex parachain. We constructed the message as usual, but the message failed to execute on Polkadot. I haven't ...