pub trait PenaltyAccount {
// Required methods
fn pubkey(&self) -> Pubkey;
fn init(&mut self, worker: Pubkey) -> Result<()>;
}
Expand description
Trait for reading and writing to a penalty account.
pub trait PenaltyAccount {
// Required methods
fn pubkey(&self) -> Pubkey;
fn init(&mut self, worker: Pubkey) -> Result<()>;
}
Trait for reading and writing to a penalty account.