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

Method TransactionAddedToMempool

src/zmq/zmqnotificationinterface.cpp:142–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142void CZMQNotificationInterface::TransactionAddedToMempool(const CTransactionRef& ptx, uint64_t mempool_sequence)
143{
144 const CTransaction& tx = *ptx;
145
146 TryForEachAndRemoveFailed(notifiers, [&tx, mempool_sequence](CZMQAbstractNotifier* notifier) {
147 return notifier->NotifyTransaction(tx) && notifier->NotifyTransactionAcceptance(tx, mempool_sequence);
148 });
149}
150
151void CZMQNotificationInterface::TransactionRemovedFromMempool(const CTransactionRef& ptx, MemPoolRemovalReason reason, uint64_t mempool_sequence)
152{

Callers

nothing calls this directly

Calls 3

NotifyTransactionMethod · 0.45

Tested by

no test coverage detected