Function light_registry::check_forester

source ยท
pub fn check_forester(
    metadata: &MerkleTreeMetadata,
    authority: Pubkey,
    queue: Pubkey,
    registered_forester_pda: &mut Option<Account<'_, ForesterEpochPda>>,
) -> Result<()>
Expand description

if registered_forester_pda is not None check forester eligibility and network_fee is not 0 if metadata.forester == authority can forest else throw error