Changeset View
Changeset View
Standalone View
Standalone View
src/validationinterface.cpp
Show First 20 Lines • Show All 217 Lines • ▼ Show 20 Lines | auto event = [ptx, this] { | ||||
m_internals->Iterate([&](CValidationInterface &callbacks) { | m_internals->Iterate([&](CValidationInterface &callbacks) { | ||||
callbacks.TransactionRemovedFromMempool(ptx); | callbacks.TransactionRemovedFromMempool(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::BlockConnected( | void CMainSignals::BlockConnected(const std::shared_ptr<const CBlock> &pblock, | ||||
const std::shared_ptr<const CBlock> &pblock, const CBlockIndex *pindex, | const CBlockIndex *pindex) { | ||||
const std::shared_ptr<const std::vector<CTransactionRef>> &pvtxConflicted) { | auto event = [pblock, pindex, this] { | ||||
auto event = [pblock, pindex, pvtxConflicted, this] { | |||||
m_internals->Iterate([&](CValidationInterface &callbacks) { | m_internals->Iterate([&](CValidationInterface &callbacks) { | ||||
callbacks.BlockConnected(pblock, pindex, *pvtxConflicted); | callbacks.BlockConnected(pblock, pindex); | ||||
}); | }); | ||||
}; | }; | ||||
ENQUEUE_AND_LOG_EVENT(event, "%s: block hash=%s block height=%d", __func__, | ENQUEUE_AND_LOG_EVENT(event, "%s: block hash=%s block height=%d", __func__, | ||||
pblock->GetHash().ToString(), pindex->nHeight); | pblock->GetHash().ToString(), pindex->nHeight); | ||||
} | } | ||||
void CMainSignals::BlockDisconnected( | void CMainSignals::BlockDisconnected( | ||||
const std::shared_ptr<const CBlock> &pblock, const CBlockIndex *pindex) { | const std::shared_ptr<const CBlock> &pblock, const CBlockIndex *pindex) { | ||||
Show All 36 Lines |