Maximum extrinsic weight limit (#6067)

* Only check single extrinsics weight limit in validate_transaction.

* Add missing parameter to all pallets.

* Add tests, fix default configuration.

* Bump spec version.

* Use AvailableBlockRation to calculate MaxExtrinsicWeight
This commit is contained in:
Tomasz Drwięga
2020-05-20 15:05:16 +02:00
committed by GitHub
parent 9e01d4feaa
commit f74a7171be
50 changed files with 129 additions and 13 deletions
@@ -69,6 +69,7 @@ impl frame_system::Trait for Test {
type DbWeight = ();
type BlockExecutionWeight = ();
type ExtrinsicBaseWeight = ();
type MaximumExtrinsicWeight = MaximumBlockWeight;
type MaximumBlockLength = MaximumBlockLength;
type AvailableBlockRatio = AvailableBlockRatio;
type Version = ();