Migrate pallet-babe to pallet attribute macro. (#8310)

* Migrate pallet-babe to pallet attribute macro.

* Remove unnecessary bound in pallet storage.

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
This commit is contained in:
Shaun Wang
2021-03-18 09:47:39 +13:00
committed by GitHub
parent da6bf01ad9
commit c7d32ba9a6
6 changed files with 313 additions and 257 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ use sp_runtime::{
};
use frame_system::InitKind;
use frame_support::{
parameter_types, StorageValue,
parameter_types,
traits::{KeyOwnerProofSystem, OnInitialize},
weights::Weight,
};
@@ -451,7 +451,7 @@ pub fn generate_equivocation_proof(
use sp_consensus_babe::digests::CompatibleDigestItem;
let current_block = System::block_number();
let current_slot = CurrentSlot::get();
let current_slot = CurrentSlot::<Test>::get();
let make_header = || {
let parent_hash = System::parent_hash();