mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-23 17:51:09 +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
@@ -23,7 +23,7 @@ use ref_thread_local::{ref_thread_local, RefThreadLocal};
|
||||
use sr_primitives::testing::Header;
|
||||
use sr_primitives::Perbill;
|
||||
use primitives::H256;
|
||||
use support::{impl_outer_origin, parameter_types};
|
||||
use support::{impl_outer_origin, parameter_types, weights::Weight};
|
||||
use {runtime_io, system};
|
||||
use crate::{GenesisConfig, Module, Trait, IsDeadAccount, OnNewAccount, ResolveHint};
|
||||
|
||||
@@ -67,7 +67,7 @@ impl ResolveHint<u64, u64> for TestResolveHint {
|
||||
pub struct Runtime;
|
||||
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