Changeset View
Changeset View
Standalone View
Standalone View
src/validationinterface.cpp
Show First 20 Lines • Show All 207 Lines • ▼ Show 20 Lines | auto event = [ptx, this] { | ||||
m_internals->Iterate([&](CValidationInterface &callbacks) { | m_internals->Iterate([&](CValidationInterface &callbacks) { | ||||
callbacks.TransactionAddedToMempool(ptx); | callbacks.TransactionAddedToMempool(ptx); | ||||
}); | }); | ||||
}; | }; | ||||
ENQUEUE_AND_LOG_EVENT(event, "%s: txid=%s", __func__, | ENQUEUE_AND_LOG_EVENT(event, "%s: txid=%s", __func__, | ||||
ptx->GetHash().ToString()); | ptx->GetHash().ToString()); | ||||
} | } | ||||
void CMainSignals::TransactionRemovedFromMempool(const CTransactionRef &ptx) { | void CMainSignals::TransactionRemovedFromMempool(const CTransactionRef &ptx, | ||||
auto event = [ptx, this] { | MemPoolRemovalReason reason) { | ||||
auto event = [ptx, reason, this] { | |||||
m_internals->Iterate([&](CValidationInterface &callbacks) { | m_internals->Iterate([&](CValidationInterface &callbacks) { | ||||
callbacks.TransactionRemovedFromMempool(ptx); | callbacks.TransactionRemovedFromMempool(ptx, reason); | ||||
}); | }); | ||||
}; | }; | ||||
ENQUEUE_AND_LOG_EVENT(event, "%s: txid=%s", __func__, | ENQUEUE_AND_LOG_EVENT(event, "%s: txid=%s", __func__, | ||||
ptx->GetHash().ToString()); | ptx->GetHash().ToString()); | ||||
} | } | ||||
void CMainSignals::BlockConnected(const std::shared_ptr<const CBlock> &pblock, | void CMainSignals::BlockConnected(const std::shared_ptr<const CBlock> &pblock, | ||||
const CBlockIndex *pindex) { | const CBlockIndex *pindex) { | ||||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |