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:
Robert Habermeier
2020-12-26 19:34:39 -05:00
committed by GitHub
parent 6dfad0921b
commit 9164cde499
4 changed files with 45 additions and 4 deletions
+10 -2
View File
@@ -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,