pub fn add_tx(&self, tx: Transaction) {
        let mut guard = self.0.write().unwrap();

        guard.wtxids.insert(tx.wtxid(), tx.txid());
        guard.txs.insert(tx.txid(), tx);
    }
/// Add a transaction to the mempool
///
/// Note that this doesn't propagate the transaction to other
/// peers. To do that, [`broadcast`](crate::blockchain::Blockchain::broadcast) should be used.
Add a transaction to the mempool
Note that this doesn't propagate the transaction to other
peers.
Add a transaction to the mempool Note that this doesn ' t propagate the transaction to other peers .
pub fn add_tx(&self, tx: Transaction) {
        let mut guard = self.0.write().unwrap();
        guard.wtxids.insert(tx.wtxid(), tx.txid());
        guard.txs.insert(tx.txid(), tx);
    }
pub fn add_tx ( & self , tx : Transaction ) { let mut guard = self . 0 . write ( ) . unwrap ( ) ; guard . wtxids . insert ( tx . wtxid ( ) , tx . txid ( ) ) ; guard . txs . insert ( tx . txid ( ) , tx ) ; }
Add a transaction to the mempool
Note that this doesn't propagate the transaction to other
peers.
Add a transaction to the mempool Note that this doesn ' t propagate the transaction to other peers .
&self
tx
Transaction
&self
tx
Transaction