Companion for Substrate 6868 (WeightInfo for System, Utility, and Timestamp) (#1606)

* fix compile warning

* remove tests for weights

* add custom weights

* "Update Substrate"

Co-authored-by: parity-processbot <>
This commit is contained in:
Shawn Tabrizi
2020-08-18 10:04:52 +02:00
committed by GitHub
parent 4e727205ab
commit ae37a00c17
18 changed files with 539 additions and 185 deletions
+3 -3
View File
@@ -148,7 +148,7 @@ impl frame_system::Trait for Runtime {
type AccountData = pallet_balances::AccountData<Balance>;
type OnNewAccount = ();
type OnKilledAccount = ();
type SystemWeightInfo = ();
type SystemWeightInfo = weights::frame_system::WeightInfo;
}
impl pallet_scheduler::Trait for Runtime {
@@ -241,7 +241,7 @@ impl pallet_timestamp::Trait for Runtime {
type Moment = u64;
type OnTimestampSet = Babe;
type MinimumPeriod = MinimumPeriod;
type WeightInfo = ();
type WeightInfo = weights::pallet_timestamp::WeightInfo;
}
parameter_types! {
@@ -668,7 +668,7 @@ impl pallet_identity::Trait for Runtime {
impl pallet_utility::Trait for Runtime {
type Event = Event;
type Call = Call;
type WeightInfo = ();
type WeightInfo = weights::pallet_utility::WeightInfo;
}
parameter_types! {