diff --git a/src/validationinterface.cpp b/src/validationinterface.cpp index 143d35f6aa..36b544ea9b 100644 --- a/src/validationinterface.cpp +++ b/src/validationinterface.cpp @@ -159,7 +159,7 @@ void CMainSignals::UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockInd } void CMainSignals::TransactionAddedToMempool(const CTransactionRef &ptx, int64_t nAcceptTime) { - m_internals->m_schedulerClient.AddToProcessQueue([ptx, this] { + m_internals->m_schedulerClient.AddToProcessQueue([ptx, nAcceptTime, this] { m_internals->TransactionAddedToMempool(ptx, nAcceptTime); }); } @@ -171,7 +171,7 @@ void CMainSignals::BlockConnected(const std::shared_ptr &pblock, c } void CMainSignals::BlockDisconnected(const std::shared_ptr &pblock, const CBlockIndex* pindexDisconnected) { - m_internals->m_schedulerClient.AddToProcessQueue([pblock, this] { + m_internals->m_schedulerClient.AddToProcessQueue([pblock, pindexDisconnected, this] { m_internals->BlockDisconnected(pblock, pindexDisconnected); }); }