mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 16:51:03 +00:00
assign db weights (#1011)
This commit is contained in:
@@ -55,6 +55,7 @@ use sp_staking::SessionIndex;
|
|||||||
use frame_support::{
|
use frame_support::{
|
||||||
parameter_types, construct_runtime, debug,
|
parameter_types, construct_runtime, debug,
|
||||||
traits::{KeyOwnerProofSystem, SplitTwoWays, Randomness, LockIdentifier},
|
traits::{KeyOwnerProofSystem, SplitTwoWays, Randomness, LockIdentifier},
|
||||||
|
weights::RuntimeDbWeight,
|
||||||
};
|
};
|
||||||
use im_online::sr25519::AuthorityId as ImOnlineId;
|
use im_online::sr25519::AuthorityId as ImOnlineId;
|
||||||
use authority_discovery_primitives::AuthorityId as AuthorityDiscoveryId;
|
use authority_discovery_primitives::AuthorityId as AuthorityDiscoveryId;
|
||||||
@@ -131,6 +132,13 @@ parameter_types! {
|
|||||||
pub const Version: RuntimeVersion = VERSION;
|
pub const Version: RuntimeVersion = VERSION;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
parameter_types! {
|
||||||
|
pub const DbWeight: RuntimeDbWeight = RuntimeDbWeight {
|
||||||
|
read: 60_000_000,
|
||||||
|
write: 200_000_000,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
impl system::Trait for Runtime {
|
impl system::Trait for Runtime {
|
||||||
type Origin = Origin;
|
type Origin = Origin;
|
||||||
type Call = Call;
|
type Call = Call;
|
||||||
@@ -144,7 +152,7 @@ impl system::Trait for Runtime {
|
|||||||
type Event = Event;
|
type Event = Event;
|
||||||
type BlockHashCount = BlockHashCount;
|
type BlockHashCount = BlockHashCount;
|
||||||
type MaximumBlockWeight = MaximumBlockWeight;
|
type MaximumBlockWeight = MaximumBlockWeight;
|
||||||
type DbWeight = ();
|
type DbWeight = DbWeight;
|
||||||
type BlockExecutionWeight = BlockExecutionWeight;
|
type BlockExecutionWeight = BlockExecutionWeight;
|
||||||
type ExtrinsicBaseWeight = ExtrinsicBaseWeight;
|
type ExtrinsicBaseWeight = ExtrinsicBaseWeight;
|
||||||
type MaximumBlockLength = MaximumBlockLength;
|
type MaximumBlockLength = MaximumBlockLength;
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ use sp_staking::SessionIndex;
|
|||||||
use frame_support::{
|
use frame_support::{
|
||||||
parameter_types, construct_runtime, debug,
|
parameter_types, construct_runtime, debug,
|
||||||
traits::{KeyOwnerProofSystem, SplitTwoWays, Randomness, LockIdentifier},
|
traits::{KeyOwnerProofSystem, SplitTwoWays, Randomness, LockIdentifier},
|
||||||
|
weights::RuntimeDbWeight,
|
||||||
};
|
};
|
||||||
use im_online::sr25519::AuthorityId as ImOnlineId;
|
use im_online::sr25519::AuthorityId as ImOnlineId;
|
||||||
use authority_discovery_primitives::AuthorityId as AuthorityDiscoveryId;
|
use authority_discovery_primitives::AuthorityId as AuthorityDiscoveryId;
|
||||||
@@ -137,6 +138,13 @@ parameter_types! {
|
|||||||
pub const Version: RuntimeVersion = VERSION;
|
pub const Version: RuntimeVersion = VERSION;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
parameter_types! {
|
||||||
|
pub const DbWeight: RuntimeDbWeight = RuntimeDbWeight {
|
||||||
|
read: 60_000_000,
|
||||||
|
write: 200_000_000,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
impl system::Trait for Runtime {
|
impl system::Trait for Runtime {
|
||||||
type Origin = Origin;
|
type Origin = Origin;
|
||||||
type Call = Call;
|
type Call = Call;
|
||||||
@@ -150,7 +158,7 @@ impl system::Trait for Runtime {
|
|||||||
type Event = Event;
|
type Event = Event;
|
||||||
type BlockHashCount = BlockHashCount;
|
type BlockHashCount = BlockHashCount;
|
||||||
type MaximumBlockWeight = MaximumBlockWeight;
|
type MaximumBlockWeight = MaximumBlockWeight;
|
||||||
type DbWeight = ();
|
type DbWeight = DbWeight;
|
||||||
type BlockExecutionWeight = BlockExecutionWeight;
|
type BlockExecutionWeight = BlockExecutionWeight;
|
||||||
type ExtrinsicBaseWeight = ExtrinsicBaseWeight;
|
type ExtrinsicBaseWeight = ExtrinsicBaseWeight;
|
||||||
type MaximumBlockLength = MaximumBlockLength;
|
type MaximumBlockLength = MaximumBlockLength;
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ use sp_staking::SessionIndex;
|
|||||||
use frame_support::{
|
use frame_support::{
|
||||||
parameter_types, construct_runtime, debug,
|
parameter_types, construct_runtime, debug,
|
||||||
traits::{KeyOwnerProofSystem, Randomness},
|
traits::{KeyOwnerProofSystem, Randomness},
|
||||||
|
weights::RuntimeDbWeight,
|
||||||
};
|
};
|
||||||
use im_online::sr25519::AuthorityId as ImOnlineId;
|
use im_online::sr25519::AuthorityId as ImOnlineId;
|
||||||
use authority_discovery_primitives::AuthorityId as AuthorityDiscoveryId;
|
use authority_discovery_primitives::AuthorityId as AuthorityDiscoveryId;
|
||||||
@@ -131,6 +132,13 @@ parameter_types! {
|
|||||||
pub const Version: RuntimeVersion = VERSION;
|
pub const Version: RuntimeVersion = VERSION;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
parameter_types! {
|
||||||
|
pub const DbWeight: RuntimeDbWeight = RuntimeDbWeight {
|
||||||
|
read: 60_000_000,
|
||||||
|
write: 200_000_000,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
impl system::Trait for Runtime {
|
impl system::Trait for Runtime {
|
||||||
type Origin = Origin;
|
type Origin = Origin;
|
||||||
type Call = Call;
|
type Call = Call;
|
||||||
@@ -144,8 +152,8 @@ impl system::Trait for Runtime {
|
|||||||
type Event = Event;
|
type Event = Event;
|
||||||
type BlockHashCount = BlockHashCount;
|
type BlockHashCount = BlockHashCount;
|
||||||
type MaximumBlockWeight = MaximumBlockWeight;
|
type MaximumBlockWeight = MaximumBlockWeight;
|
||||||
type DbWeight = ();
|
type DbWeight = DbWeight;
|
||||||
type BlockExecutionWeight = BlockExecutionWeight;
|
type BlockExecutionWeight = BlockExecutionWeight;
|
||||||
type ExtrinsicBaseWeight = ExtrinsicBaseWeight;
|
type ExtrinsicBaseWeight = ExtrinsicBaseWeight;
|
||||||
type MaximumBlockLength = MaximumBlockLength;
|
type MaximumBlockLength = MaximumBlockLength;
|
||||||
type AvailableBlockRatio = AvailableBlockRatio;
|
type AvailableBlockRatio = AvailableBlockRatio;
|
||||||
|
|||||||
Reference in New Issue
Block a user