pub trait PenaltyAccount { fn pubkey(&self) -> Pubkey; fn init(&mut self, worker: Pubkey) -> Result<()>; }
Trait for reading and writing to a penalty account.
Get the pubkey of the penalty account.
Initialize the account to hold penalty object.