-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle bioauth transaction status and properly process it
- Loading branch information
1 parent
a7ee0aa
commit 35fe830
Showing
6 changed files
with
69 additions
and
5 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
//! The bioauth transaction not finalized related error kinds. | ||
|
||
/// The bioauth transaction not finalized related error kinds. | ||
#[derive(Debug, thiserror::Error)] | ||
pub enum Error { | ||
/// Transaction is no longer valid in the current state. | ||
#[error("transaction is no longer valid in the current state")] | ||
Invalid, | ||
/// Transaction has been dropped from the pool because of the limit. | ||
#[error("transaction has been dropped from the pool because of the limit")] | ||
Dropped, | ||
/// Transaction has been replaced in the pool, by another transaction | ||
/// that provides the same tags. (e.g. same (sender, nonce)). | ||
#[error("transaction has been replaced in the pool, by another transaction")] | ||
Usurped, | ||
/// The block this transaction was included in has been retracted. | ||
#[error("the block this transaction was included in has been retracted")] | ||
Retracted, | ||
/// Maximum number of finality watchers has been reached, | ||
/// old watchers are being removed. | ||
#[error("finality timeout")] | ||
FinalityTimeout, | ||
} |
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