Function load_proof_with_miner

Source
pub fn load_proof_with_miner(
    info: &AccountInfo<'_>,
    miner: &Pubkey,
    is_writable: bool,
) -> Result<(), ProgramError>
Expand description

Errors if:

  • Owner is not Marsh program.
  • Data is empty.
  • Data cannot deserialize into a proof account.
  • Proof miner does not match the expected address.
  • Expected to be writable, but is not.