Make `on_slot` return the block with the post header (#8188)
* Make `on_slot` return the block with the post header Before this pr `on_slot` returned the pre block. However this is wrong, because adding some post digest changes the hash of the header. Thus, we need to make sure to return the correct block that uses the post header. * Update primitives/consensus/common/src/block_import.rs Co-authored-by:André Silva <123550+andresilva@users.noreply.github.com> Co-authored-by:
André Silva <123550+andresilva@users.noreply.github.com>
parent
3e3b5f9c
Showing
- substrate/client/consensus/aura/src/lib.rs 50 additions, 3 deletionssubstrate/client/consensus/aura/src/lib.rs
- substrate/client/consensus/slots/src/lib.rs 4 additions, 3 deletionssubstrate/client/consensus/slots/src/lib.rs
- substrate/primitives/consensus/common/src/block_import.rs 14 additions, 9 deletionssubstrate/primitives/consensus/common/src/block_import.rs
Please register or sign in to comment