Introduce BlockExecutionWeight and ExtrinsicBaseWeight (#1023)

* Update to changes in Substrate

* Fix trait

* Remove `TransactionBaseFee`

* add temporary values for extrinsic base weight and block execution weight

* Update Cargo.lock
This commit is contained in:
Shawn Tabrizi
2020-04-25 10:04:35 +02:00
committed by GitHub
parent 5733869389
commit 0a10e37c99
12 changed files with 262 additions and 249 deletions
+4 -2
View File
@@ -26,7 +26,7 @@ use codec::{Encode, Decode, Codec};
use frame_support::{
decl_module, decl_storage, decl_event, decl_error, ensure, dispatch::DispatchResult,
traits::{Currency, ReservableCurrency, WithdrawReason, ExistenceRequirement, Get, Randomness},
weights::{MINIMUM_WEIGHT, DispatchClass, Weight},
weights::{DispatchClass, Weight},
};
use primitives::parachain::{
SwapAux, PARACHAIN_INFO, Id as ParaId, ValidationCode, HeadData,
@@ -286,7 +286,7 @@ decl_module! {
Self::manage_lease_period_start(lease_period_index);
}
MINIMUM_WEIGHT
0
}
fn on_finalize(now: T::BlockNumber) {
@@ -922,6 +922,8 @@ mod tests {
type BlockHashCount = BlockHashCount;
type MaximumBlockWeight = MaximumBlockWeight;
type DbWeight = ();
type BlockExecutionWeight = ();
type ExtrinsicBaseWeight = ();
type MaximumBlockLength = MaximumBlockLength;
type AvailableBlockRatio = AvailableBlockRatio;
type Version = ();