Skip to content

Commit 79c8556

Browse files
authored
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
1 parent 604e578 commit 79c8556

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mock.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ impl frame_system::Trait for Test {
6161
type DbWeight = ();
6262
type BlockExecutionWeight = ();
6363
type ExtrinsicBaseWeight = ();
64+
type MaximumExtrinsicWeight = MaximumBlockWeight;
6465
type AvailableBlockRatio = AvailableBlockRatio;
6566
type MaximumBlockLength = MaximumBlockLength;
6667
type Version = ();

0 commit comments

Comments
 (0)