mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-30 07:29:49 +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:
1 parent
6dfad0921b
commit
9164cde499
4 files changed
+45
-4
No files matched your search
@@ -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