Questions tagged [babe]
Block production protocol
59
questions
1
vote
1
answer
18
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
31
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
38
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
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 ...
1
vote
0
answers
12
views
How to debug/test POS, log out the authorityId?
I am trying to customize the POS. But I don't know how to evaluate my algorithm. I want to print out the authority ID (BABE) and block producer ID.
How do I do that? Please give me some leads.
Thank ...
0
votes
0
answers
58
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
18
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-...
0
votes
0
answers
15
views
How to update BabeAuthorityWeight and NextAuthorities from custom pallet?
I would like to customize the POS. I did read some article about how to implement that, and used pallet_babe, my custom pallet and also pallet_staking.
I found that in order to update the authorities ...
1
vote
1
answer
37
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
56
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
34
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
38
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 ...
0
votes
1
answer
19
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
52
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
51
views
How to change POA to POS with babe?
How to change the the consensus of node-template from POA to POS with babe?