mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 15:51:12 +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
@@ -47,7 +47,7 @@ use runtime_version::RuntimeVersion;
|
||||
pub use primitives::{hash::H256};
|
||||
#[cfg(any(feature = "std", test))]
|
||||
use runtime_version::NativeVersion;
|
||||
use runtime_support::{impl_outer_origin, parameter_types};
|
||||
use runtime_support::{impl_outer_origin, parameter_types, weights::Weight};
|
||||
use inherents::{CheckInherentsResult, InherentData};
|
||||
use cfg_if::cfg_if;
|
||||
|
||||
@@ -353,7 +353,7 @@ impl From<frame_system::Event> for Event {
|
||||
parameter_types! {
|
||||
pub const BlockHashCount: BlockNumber = 250;
|
||||
pub const MinimumPeriod: u64 = 5;
|
||||
pub const MaximumBlockWeight: u32 = 4 * 1024 * 1024;
|
||||
pub const MaximumBlockWeight: Weight = 4 * 1024 * 1024;
|
||||
pub const MaximumBlockLength: u32 = 4 * 1024 * 1024;
|
||||
pub const AvailableBlockRatio: Perbill = Perbill::from_percent(75);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user