Questions tagged [babe]
Block production protocol
57 questions
1 vote
1 answer
29 views
Babe-consensus node doesn't produce blocks with chain --local
Problem: The node doesn't produce blocks for chain=local, but for dev works good (blocks producing and finalizing). I'm using solochain-template where I changed consensus from aura to babe to use NPOS....
0 votes
1 answer
28 views
Is it possible to have more than 1 parallel validator account connected to a node?
In the context of validators and block production what is the maximum number of validator accounts associated to the same instance of a polkadot node? In other words how many accounts can (should) add ...
0 votes
1 answer
38 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,...
1 vote
1 answer
38 views
Chain halts after runtime upgrade | Getting `Ignoring empty epoch change.` `Error with block built on`
I have a solo chain using Babe consensus. In my new branch, I implemented OneSessionHandler in one of my pallets. I am using this to collect active validators. It's working fine if I run chain with my ...
1 vote
0 answers
39 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
43 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 ...
3 votes
0 answers
26 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
65 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
0 answers
21 views
Which one is ExternalTrigger in BABE?
in this document it mentioned ExternalTrigger. So which pallet could be ExternalTrigger for BABE. and How to implement EpochChangeTrigger? It also said that pallet-session could be used, but pallet-...
1 vote
1 answer
52 views
How to change the NextAuthorities set from custom pallet?
The NextAuthorities is only updated in function enact_epoch_change() in pallet_babe and this function is called in Trait EpochChangeTrigger (pallet_babe) and OnSessionHandler so, in the ...
2 votes
1 answer
67 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
1 answer
44 views
When I tried to apply BABE in solo chain, I got LightSyncStateExtensionNotFound error
When I tried to apply BABE in solo chain, I got this error 2023-12-27 07:30:39 💻 Operating system: macos 2023-12-27 07:30:39 💻 CPU architecture: aarch64 2023-12-27 07:30:39 📦 Highest known ...
0 votes
1 answer
32 views
Understanding the Concept of "Best Block" in Parachains, Relay Chains, and Solo Chains
I'm currently working to gain a deeper understanding of blockchain technologies, specifically in the context of parachains and relay chains, as well as solo chains. I'm having some confusion regarding ...
0 votes
1 answer
61 views
Can we use AccountId20 with babe and other pallets?
As frontier now integrate natively the AccountId20 type, I wonder if it is compatible with all other pallets like BABE, Staking, ... Is there a place where we can check it or do we know some ...
1 vote
1 answer
68 views
How to change POA to POS with babe?
How to change the the consensus of node-template from POA to POS with babe?