Skip to main content

Unanswered Questions

89 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
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 ...
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
1 answer
41 views

Could not cast prevote: previously known block 0x_ has disappeared

The finalization is blocked on our development chain and I have these logs: 2024-07-12 19:37:00 ✨ Imported #2208390 (0x85e0…1a0a) 2024-07-12 19:37:01 💤 Idle (14 peers), best: #2208390 (0x85e0…...
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 ...

15 30 50 per page
1
2 3 4 5 6