update mine transaction introspection to use declared proof

This commit is contained in:
Kriptikz
2024-07-24 22:26:07 -05:00
parent 67383ec8c0
commit 49d5e95dbb
2 changed files with 20 additions and 14 deletions

View File

@@ -27,6 +27,10 @@ pub enum OreError {
CannotClose = 9,
#[error("This account cannot be crowned because its last stake was too recent")]
CannotCrown = 10,
#[error("Only the declared proof can be processed in this transaction")]
DeclaredProofMissmatch = 11,
#[error("Failed to find and parse the declared proof from the transaction")]
FindAndParseDeclaredProofFailed = 12,
}
impl From<OreError> for ProgramError {