kaspa_mining/model/
tx_insert.rs

1use kaspa_consensus_core::tx::Transaction;
2use std::sync::Arc;
3
4#[derive(Debug)]
5pub struct TransactionInsertion {
6    pub removed: Option<Arc<Transaction>>,
7    pub accepted: Vec<Arc<Transaction>>,
8}
9
10impl TransactionInsertion {
11    pub fn new(removed: Option<Arc<Transaction>>, accepted: Vec<Arc<Transaction>>) -> Self {
12        Self { removed, accepted }
13    }
14}