mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 15:27:57 +00:00
add a current_epoch to BabeApi (#7789)
* add a `current_epoch` to BabeApi * add current_epoch_start back again * fix node-runtime * bump spec version
This commit is contained in:
committed by
GitHub
parent
6dfad0921b
commit
9164cde499
@@ -732,10 +732,14 @@ cfg_if! {
|
||||
}
|
||||
}
|
||||
|
||||
fn current_epoch_start() -> SlotNumber {
|
||||
fn current_epoch_start() -> sp_consensus_babe::SlotNumber {
|
||||
<pallet_babe::Module<Runtime>>::current_epoch_start()
|
||||
}
|
||||
|
||||
fn current_epoch() -> sp_consensus_babe::Epoch {
|
||||
<pallet_babe::Module<Runtime>>::current_epoch()
|
||||
}
|
||||
|
||||
fn submit_report_equivocation_unsigned_extrinsic(
|
||||
_equivocation_proof: sp_consensus_babe::EquivocationProof<
|
||||
<Block as BlockT>::Header,
|
||||
@@ -983,10 +987,14 @@ cfg_if! {
|
||||
}
|
||||
}
|
||||
|
||||
fn current_epoch_start() -> SlotNumber {
|
||||
fn current_epoch_start() -> sp_consensus_babe::SlotNumber {
|
||||
<pallet_babe::Module<Runtime>>::current_epoch_start()
|
||||
}
|
||||
|
||||
fn current_epoch() -> sp_consensus_babe::Epoch {
|
||||
<pallet_babe::Module<Runtime>>::current_epoch()
|
||||
}
|
||||
|
||||
fn submit_report_equivocation_unsigned_extrinsic(
|
||||
_equivocation_proof: sp_consensus_babe::EquivocationProof<
|
||||
<Block as BlockT>::Header,
|
||||
|
||||
Reference in New Issue
Block a user