Skip to content

Commit

Permalink
Add WeightInfo to all pallets with benchmarks. (#6575)
Browse files Browse the repository at this point in the history
* Start adding weight info

* More weightinfo

* finish weight info

* more fixes

* inital update of node runtime

* fix the rest of the compilation

* update balances

* add docs

* fix balances tests

* Fix more tests

* Fix compile

* Fix pallet-evm tests
  • Loading branch information
shawntabrizi authored Jul 8, 2020
1 parent c4b496e commit 068cc24
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ impl frame_system::Trait for Test {
type AccountData = pallet_balances::AccountData<u128>;
type OnNewAccount = ();
type OnKilledAccount = ();
type SystemWeightInfo = ();
}

impl<C> frame_system::offchain::SendTransactionTypes<C> for Test
Expand All @@ -116,6 +117,7 @@ impl pallet_session::Trait for Test {
type SessionHandler = <MockSessionKeys as OpaqueKeys>::KeyTypeIdProviders;
type Keys = MockSessionKeys;
type DisabledValidatorsThreshold = DisabledValidatorsThreshold;
type WeightInfo = ();
}

impl pallet_session::historical::Trait for Test {
Expand All @@ -142,6 +144,7 @@ impl pallet_timestamp::Trait for Test {
type Moment = u64;
type OnTimestampSet = Babe;
type MinimumPeriod = MinimumPeriod;
type WeightInfo = ();
}

parameter_types! {
Expand All @@ -154,6 +157,7 @@ impl pallet_balances::Trait for Test {
type Event = ();
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = System;
type WeightInfo = ();
}

pallet_staking_reward_curve::build! {
Expand Down Expand Up @@ -213,6 +217,7 @@ impl pallet_staking::Trait for Test {
type UnsignedPriority = StakingUnsignedPriority;
type MaxIterations = ();
type MinSolutionScoreBump = ();
type WeightInfo = ();
}

parameter_types! {
Expand All @@ -224,6 +229,7 @@ impl pallet_offences::Trait for Test {
type IdentificationTuple = pallet_session::historical::IdentificationTuple<Self>;
type OnOffenceHandler = Staking;
type WeightSoftLimit = OffencesWeightSoftLimit;
type WeightInfo = ();
}

impl Trait for Test {
Expand Down

0 comments on commit 068cc24

Please sign in to comment.