-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support skip_validate in mempool
- Loading branch information
1 parent
871ad40
commit 1941945
Showing
4 changed files
with
56 additions
and
0 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
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 |
---|---|---|
@@ -1,10 +1,13 @@ | ||
use starknet_api::core::ContractAddress; | ||
use starknet_api::transaction::TransactionHash; | ||
use thiserror::Error; | ||
|
||
#[derive(Clone, Debug, Error, PartialEq, Eq)] | ||
pub enum MempoolError { | ||
#[error("Duplicate transaction, with hash: {tx_hash}")] | ||
DuplicateTransaction { tx_hash: TransactionHash }, | ||
#[error("Undeployed account {:?}", sender_address)] | ||
UndeployedAccount { sender_address: ContractAddress }, | ||
#[error("Transaction with hash: {tx_hash} not found")] | ||
TransactionNotFound { tx_hash: TransactionHash }, | ||
} |