Skip to content

Commit a384c75

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 136ecfb commit a384c75

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,7 @@ mod tests {
433433
type DbWeight = ();
434434
type BlockExecutionWeight = ();
435435
type ExtrinsicBaseWeight = ();
436+
type MaximumExtrinsicWeight = MaximumBlockWeight;
436437
type AvailableBlockRatio = AvailableBlockRatio;
437438
type MaximumBlockLength = MaximumBlockLength;
438439
type Version = ();

0 commit comments

Comments
 (0)