update errors

This commit is contained in:
Hardhat Chad
2024-03-16 03:31:19 +00:00
parent 0d54d114f0
commit 350b92213e
4 changed files with 21 additions and 21 deletions

View File

@@ -10,15 +10,15 @@ pub enum OreError {
#[error("The epoch has ended and needs reset")]
NeedsReset = 1,
#[error("The epoch is active and cannot be reset at this time")]
InvalidReset = 2,
ResetTooEarly = 2,
#[error("The provided hash was invalid")]
InvalidHash = 3,
HashInvalid = 3,
#[error("The provided hash does not satisfy the difficulty requirement")]
InsufficientHashDifficulty = 4,
#[error("The bus has insufficient rewards to mine at this time")]
InsufficientBusRewards = 5,
DifficultyNotSatisfied = 4,
#[error("The bus has insufficient rewards to issue at this time")]
BusRewardsInsufficient = 5,
#[error("The claim amount cannot be larger than the claimable rewards")]
InvalidClaimAmount = 6,
ClaimTooLarge = 6,
}
impl From<OreError> for ProgramError {