mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 06:51:07 +00:00
Make weights compatible with u64 (#4192)
* Use Weight instead of u32 everywhere * Revert Weight declaration * Fix benches
This commit is contained in:
committed by
Bastian Köcher
parent
1ceebb5c3a
commit
3e3ec05e56
@@ -24,8 +24,11 @@ use sr_primitives::testing::{Header, UintAuthorityId};
|
||||
use sr_staking_primitives::{SessionIndex, offence::{OffenceDetails, OnOffenceHandler}};
|
||||
use primitives::{H256, crypto::key_types};
|
||||
use runtime_io;
|
||||
use support::{assert_ok, impl_outer_origin, parameter_types, StorageLinkedMap, StorageValue};
|
||||
use support::traits::{Currency, Get, FindAuthor};
|
||||
use support::{
|
||||
assert_ok, impl_outer_origin, parameter_types, StorageLinkedMap, StorageValue,
|
||||
traits::{Currency, Get, FindAuthor},
|
||||
weights::Weight,
|
||||
};
|
||||
use crate::{
|
||||
EraIndex, GenesisConfig, Module, Trait, StakerStatus, ValidatorPrefs, RewardDestination,
|
||||
Nominators, inflation
|
||||
@@ -114,7 +117,7 @@ impl FindAuthor<u64> for Author11 {
|
||||
pub struct Test;
|
||||
parameter_types! {
|
||||
pub const BlockHashCount: u64 = 250;
|
||||
pub const MaximumBlockWeight: u32 = 1024;
|
||||
pub const MaximumBlockWeight: Weight = 1024;
|
||||
pub const MaximumBlockLength: u32 = 2 * 1024;
|
||||
pub const AvailableBlockRatio: Perbill = Perbill::one();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user