mdp/state/status.rs
1use borsh::{BorshDeserialize, BorshSerialize};
2
3/// Possible states for ER node to be in
4#[derive(Debug, BorshDeserialize, BorshSerialize, Clone, Copy, PartialEq, Eq)]
5#[borsh(use_discriminant = true)]
6pub enum ErStatus {
7 /// node is active and accepting new delegations
8 Active = 0,
9 /// node is active but not accepting new delegations, only serving existing ones
10 Draining = 1,
11 /// node has been taken offline, e.g. for maintenance
12 Offline = 2,
13}