MCPcopy Create free account
hub / github.com/ElementsProject/elements / AddUnbroadcastTx

Method AddUnbroadcastTx

src/txmempool.h:832–838  ·  view source on GitHub ↗

Adds a transaction to the unbroadcast set */

Source from the content-addressed store, hash-verified

830
831 /** Adds a transaction to the unbroadcast set */
832 void AddUnbroadcastTx(const uint256& txid)
833 {
834 LOCK(cs);
835 // Sanity check the transaction is in the mempool & insert into
836 // unbroadcast set.
837 if (exists(GenTxid::Txid(txid))) m_unbroadcast_txids.insert(txid);
838 };
839
840 /** Removes a transaction from the unbroadcast set */
841 void RemoveUnbroadcastTx(const uint256& txid, const bool unchecked = false);

Callers 2

LoadMempoolFunction · 0.80
BroadcastTransactionFunction · 0.80

Calls 2

existsFunction · 0.85
insertMethod · 0.45

Tested by

no test coverage detected