1
2
3
4
5
6
7
8
9
10
11
12
use massa_models::{
    block_header::BlockHeader, block_id::BlockId, secure_share::SecureShare, slot::Slot,
};
use massa_storage::Storage;

#[allow(clippy::large_enum_variant)]
#[derive(Clone)]
pub enum ConsensusCommand {
    RegisterBlock(BlockId, Slot, Storage, bool),
    RegisterBlockHeader(BlockId, SecureShare<BlockHeader, BlockId>),
    MarkInvalidBlock(BlockId, SecureShare<BlockHeader, BlockId>),
}