Include post dispatch corrected weight in extrinsic events (#6024)
* Include post dispatch corrected weight in extrinsic events * Drop the 'Post' from ApplyExtrinsicResultWithPostInfo to make it less verbose * Apply suggestions from code review Co-authored-by:Bastian Köcher <bkchr@users.noreply.github.com> * Use proper Event type in pallet_system tests * Add test that the actual weight is returned by events * Make fn extract_actual_weight cap at pre dispatch weight * Bump spec version Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com> Co-authored-by:
Gavin Wood <gavin@parity.io>
Showing
- substrate/bin/node/runtime/src/lib.rs 2 additions, 2 deletionssubstrate/bin/node/runtime/src/lib.rs
- substrate/frame/executive/src/lib.rs 5 additions, 4 deletionssubstrate/frame/executive/src/lib.rs
- substrate/frame/support/src/weights.rs 36 additions, 1 deletionsubstrate/frame/support/src/weights.rs
- substrate/frame/system/src/lib.rs 146 additions, 38 deletionssubstrate/frame/system/src/lib.rs
- substrate/primitives/runtime/src/generic/checked_extrinsic.rs 4 additions, 4 deletions...trate/primitives/runtime/src/generic/checked_extrinsic.rs
- substrate/primitives/runtime/src/lib.rs 4 additions, 0 deletionssubstrate/primitives/runtime/src/lib.rs
- substrate/primitives/runtime/src/testing.rs 4 additions, 4 deletionssubstrate/primitives/runtime/src/testing.rs
- substrate/primitives/runtime/src/traits.rs 1 addition, 1 deletionsubstrate/primitives/runtime/src/traits.rs
Please register or sign in to comment