frame-executive: Reject invalid inherents in the executive (#12365)
* frame-executive: Reject invalid inherents in the executive We already had support for making a block fail if an inherent returned, but it was part of the signed extension `CheckWeight`. Rejecting blocks with invalid inherents should happen on the `frame-executive` level without requiring any special signed extension. This is crucial to prevent any kind of spamming of the network that could may happen with blocks that include failing inherents. * FMT * Update frame/executive/src/lib.rs Co-authored-by:Keith Yeung <kungfukeith11@gmail.com> * Update primitives/runtime/src/transaction_validity.rs Co-authored-by:
Keith Yeung <kungfukeith11@gmail.com> Co-authored-by: parity-processbot <> Co-authored-by:
Keith Yeung <kungfukeith11@gmail.com>
Showing
- substrate/frame/executive/src/lib.rs 49 additions, 2 deletionssubstrate/frame/executive/src/lib.rs
- substrate/frame/support/src/dispatch.rs 4 additions, 2 deletionssubstrate/frame/support/src/dispatch.rs
- substrate/frame/system/src/extensions/check_weight.rs 3 additions, 17 deletionssubstrate/frame/system/src/extensions/check_weight.rs
- substrate/primitives/runtime/src/transaction_validity.rs 5 additions, 5 deletionssubstrate/primitives/runtime/src/transaction_validity.rs
Please register or sign in to comment