Skip to content

Commit

Permalink
Add mempool::Error::Conflict variant
Browse files Browse the repository at this point in the history
An error representing that a transaction was rejected because it
conflicts with another transaction that's already in the mempool.
  • Loading branch information
jvff committed Sep 16, 2021
1 parent 813728a commit a699616
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zebrad/src/components/mempool/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,8 @@ pub enum MempoolError {
/// The queue's capacity is [`super::downloads::MAX_INBOUND_CONCURRENCY`].
#[error("transaction dropped because the queue is full")]
FullQueue,

/// The transaction conflicts with another transaction already in the mempool.
#[error("transaction rejected because it conflicts with another transaction in the mempool")]
Conflict,
}

0 comments on commit a699616

Please sign in to comment.