diff --git a/crates/transaction-pool/src/pool/events.rs b/crates/transaction-pool/src/pool/events.rs index 03856aea27..3556337a6d 100644 --- a/crates/transaction-pool/src/pool/events.rs +++ b/crates/transaction-pool/src/pool/events.rs @@ -39,10 +39,17 @@ pub enum FullTransactionEvent { impl Clone for FullTransactionEvent { fn clone(&self) -> Self { match self { + Self::Pending(hash) => Self::Pending(*hash), + Self::Queued(hash) => Self::Queued(*hash), + Self::Mined { tx_hash, block_hash } => { + Self::Mined { tx_hash: *tx_hash, block_hash: *block_hash } + } Self::Replaced { transaction, replaced_by } => { Self::Replaced { transaction: Arc::clone(transaction), replaced_by: *replaced_by } } - other => other.clone(), + Self::Discarded(hash) => Self::Discarded(*hash), + Self::Invalid(hash) => Self::Invalid(*hash), + Self::Propagated(propagated) => Self::Propagated(Arc::clone(propagated)), } } }