pub trait PenaltyAccount {
    fn pubkey(&self) -> Pubkey;
    fn init(&mut self, worker: Pubkey) -> Result<()>;
}
Expand description

Trait for reading and writing to a penalty account.

Required Methods§

Get the pubkey of the penalty account.

Initialize the account to hold penalty object.

Implementations on Foreign Types§

Implementors§