-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
dndll
committed
Dec 21, 2023
1 parent
362ba10
commit f155d02
Showing
5 changed files
with
887 additions
and
876 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
#[derive(Debug, Eq, PartialEq)] | ||
use thiserror::Error; | ||
|
||
#[derive(Error, Debug, PartialEq, Eq)] | ||
pub enum Error { | ||
#[error("Block already verified")] | ||
BlockAlreadyVerified, | ||
#[error("Block not current or next epoch")] | ||
BlockNotCurrentOrNextEpoch, | ||
BlockMissingNextBps, | ||
#[error("Signature invalid")] | ||
SignatureInvalid, | ||
#[error("Not enough approved stake")] | ||
NotEnoughApprovedStake, | ||
#[error("Block is in the next epoch but no new set")] | ||
NextBpsInvalid, | ||
#[error("Signature len mismatch")] | ||
SignatureLenMismatch, | ||
#[error("Invalid proof")] | ||
InvalidProof, | ||
} |
Oops, something went wrong.