Contractless/src/records/ip_score/enums.rs

10 lines
250 B
Rust

// InfractionType keeps the IP scoring inputs typed all the way to the scoring function.
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum InfractionType {
BadRpcCall,
BadMinerIpUpdate,
BadTorrent,
RpcFloodAttack,
BadBlock,
}