diff --git a/pallets/author-inherent/src/lib.rs b/pallets/author-inherent/src/lib.rs index 7c1fce6..bbb9079 100644 --- a/pallets/author-inherent/src/lib.rs +++ b/pallets/author-inherent/src/lib.rs @@ -117,6 +117,9 @@ pub mod pallet { T::DbWeight::get().reads_writes(1, 2) } fn on_finalize(_: BlockNumberFor) { + // According to parity, the only wayt to ensure that a mandatory inherent is included + // is by checking on block finaliztion that the inherent set a particular storage item: + // https://github.com/paritytech/polkadot-sdk/issues/2841#issuecomment-1876040854 assert!( InherentIncluded::::get() == true, "Block invalid, missing inherent `kick_off_authorship_validation`"