use num_derive::FromPrimitive;
use super::{Address, ChainEpoch};
#[derive(Clone, Debug)]
pub struct ConsensusFault {
pub target: Address,
pub epoch: ChainEpoch,
pub fault_type: ConsensusFaultType,
}
#[derive(FromPrimitive, Clone, Copy, Debug)]
#[repr(u8)]
pub enum ConsensusFaultType {
DoubleForkMining = 1,
ParentGrinding = 2,
TimeOffsetMining = 3,
}