Questions tagged [consensus]
Generic tag for consensus-related questions, e.g. block production protocols, finality protocols, parachains. Best used in combination with other more specific tags (e.g. [tag:grandpa] or [tag:babe]).
18 questions from the last 365 days
0
votes
1
answer
33
views
Why was BABE Secondary Slot Assignment not implemented in a round-robin style?
The Polkadot documentation mentions that secondary slots in BABE use a round-robin style for block assignments. However, the secondary slots are not strictly assigned in a round-robin fashion, instead,...
0
votes
0
answers
10
views
Why does pallet-babe have a `MaxNominators` configuration?
Going through the pallet again for a project and I can see that it has a config item for MaxNominators which unsurprisingly has the following description:
The maximum number of nominators for each ...
0
votes
0
answers
10
views
How can implement less frequent empty block and instant confirmation for transactions by modifying babe consensus?
async fn propose_with(
self,
inherent_data: InherentData,
inherent_digests: Digest,
deadline: time::Instant,
block_size_limit: Option<usize>,
) -> ...
0
votes
1
answer
21
views
How to change a custom consensus of a parachain to PoS?
I am using this parachain repo. Where there is a custom consensus implemented.
How can I change the consensus from custom to PoS consensus?
0
votes
1
answer
29
views
How to convert PoA to nPOS and POS?
I am using Substrate parachain template from here.
How I can change it consensus from PoA to:
nPoS
PoS (pure PoS not nPoS)
1
vote
0
answers
35
views
Why does a block in Substrate-based blockchain have no author and no reward points?
We encountered an issue in our Substrate-based blockchain network where a block has no author and no reward points were given to any validator. This block was finalised. The block was an era-...
2
votes
1
answer
39
views
How to impl FindAuthor<H160> with Babe
I want add pallet-evm in my substrate node. and my substrate node use Babe instead of Aura. How can I Impl FindAuthor whih Babe ?
this is the example of Aura. I want to impl it with Babe
pub struct ...
0
votes
0
answers
19
views
What can Substrate and Polkadot do for me?
What is the best and quickest way, for a layman, who has very little,
to no experience, at all, in coding and/or developing, to play catch-up, so that he/she might be brought-up-to-speed, enough to ...
0
votes
0
answers
17
views
What is the expected time from sending a extrinsic to a block it's in being finalised?
Can we predict an average time derived from consensus, async backing and what other factors can impact this time?
Thanks
1
vote
2
answers
83
views
How to add block author through InherentDataProvider in pow consensus?
I'm working on pow consensus chain and want to fetch block author in a pallet. I'm following Academy-PoW repo for adding block author through InherentDataProvider. But here default is passed in-place ...
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 ...
0
votes
0
answers
62
views
How to convert `AccountId` to `AuthorityId`
699 | acc_vec.push((account_id, userInfo.weight.saturated_into::<u64>()));
| ^^^^^^^^^^ expected `Public`, found associated type
|
...
1
vote
1
answer
56
views
How are valid transactions distributed to block authoring nodes?
I am new to Substrate and currently reading through all the great documentation that is available.
I understand the concept of block authoring and finalization, but the following is a bit unclear
to ...
2
votes
1
answer
60
views
What is difference between pallet-babe and sp-consensus-babe?
Here is sp_consensus_babe https://releases.parity.io/substrate-rustdoc/src/sp_consensus_babe/lib.rs.html#86
and pallet_babe :https://crates.parity.io/src/pallet_babe/lib.rs.html#18-975
What is ...
1
vote
0
answers
28
views
How to Fetch data at the time of block production?
Can I implement a pallet which holds the node information and at the block production time we can use this node information?
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 ...
0
votes
1
answer
54
views
BABE halts at block 100
2023-12-26 11:46:18.019 WARN tokio-runtime-worker babe: Error with block built on 0x54a0fbd3703e9d3311c3f51913714b84fc7b09b143251fcaf826dcdc6cf1e388: Import failed: Expected epoch change to happen at ...
2
votes
0
answers
46
views
Proof-of-Work Substrate Chain with Multiple Validators
I'm working on a Proof-of-Work (POW) substrate chain. Assuming we have four validators, all of which have enabled on-chain workers (OCW), is it accurate to state that each validator's OCW fetches data ...