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
@@ -36,7 +36,7 @@ use sp_staking::{
use frame_support::{
traits::KeyOwnerProofSystem,
dispatch::{IsSubType},
weights::{DispatchClass, Weight, MINIMUM_WEIGHT},
weights::{DispatchClass, Weight},
};
use primitives::{
Balance,
@@ -556,7 +556,7 @@ decl_module! {
Self::do_old_code_pruning(now);
// TODO https://github.com/paritytech/polkadot/issues/977: set correctly
MINIMUM_WEIGHT
0
}
fn on_finalize() {
@@ -1633,6 +1633,8 @@ mod tests {
type BlockHashCount = BlockHashCount;
type MaximumBlockWeight = MaximumBlockWeight;
type DbWeight = ();
type BlockExecutionWeight = ();
type ExtrinsicBaseWeight = ();
type MaximumBlockLength = MaximumBlockLength;
type AvailableBlockRatio = AvailableBlockRatio;
type Version = ();