diff --git a/polkadot/primitives/src/v1/mod.rs b/polkadot/primitives/src/v1/mod.rs index dbc4a7ceabc0e24ae126842b35b390c1045291b1..0fe6ed84702f64e06418b1c69d9a74df09d2268b 100644 --- a/polkadot/primitives/src/v1/mod.rs +++ b/polkadot/primitives/src/v1/mod.rs @@ -1046,6 +1046,16 @@ pub enum ConsensusLog { /// number in the current chain, inclusive. #[codec(index = 3)] ForceApprove(BlockNumber), + /// A signal to revert the block number in the same chain as the + /// header this digest is part of and all of its descendents. + /// + /// It is a no-op for a block to contain a revert digest targeting + /// its own number or a higher number. + /// + /// In practice, these are issued when on-chain logic has detected an + /// invalid parachain block within its own chain, due to a dispute. + #[codec(index = 4)] + Revert(BlockNumber) } impl ConsensusLog {