Skip to content

Commit 7ed893a

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 c557284 commit 7ed893a

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
@@ -79,6 +79,7 @@ impl frame_system::Trait for Test {
7979
type DbWeight = ();
8080
type BlockExecutionWeight = ();
8181
type ExtrinsicBaseWeight = ();
82+
type MaximumExtrinsicWeight = MaximumBlockWeight;
8283
type MaximumBlockLength = MaximumBlockLength;
8384
type AvailableBlockRatio = AvailableBlockRatio;
8485
type Version = ();

0 commit comments

Comments
 (0)