fix validationinterface.cpp

Signed-off-by: Pasta <pasta@dashboost.org>
This commit is contained in:
Pasta 2020-02-12 20:49:34 -06:00
parent 3eb80fdcd5
commit 37580b0ba3
No known key found for this signature in database
GPG Key ID: 52527BEDABE87984

View File

@ -159,7 +159,7 @@ void CMainSignals::UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockInd
} }
void CMainSignals::TransactionAddedToMempool(const CTransactionRef &ptx, int64_t nAcceptTime) { 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); m_internals->TransactionAddedToMempool(ptx, nAcceptTime);
}); });
} }
@ -171,7 +171,7 @@ void CMainSignals::BlockConnected(const std::shared_ptr<const CBlock> &pblock, c
} }
void CMainSignals::BlockDisconnected(const std::shared_ptr<const CBlock> &pblock, const CBlockIndex* pindexDisconnected) { void CMainSignals::BlockDisconnected(const std::shared_ptr<const CBlock> &pblock, const CBlockIndex* pindexDisconnected) {
m_internals->m_schedulerClient.AddToProcessQueue([pblock, this] { m_internals->m_schedulerClient.AddToProcessQueue([pblock, pindexDisconnected, this] {
m_internals->BlockDisconnected(pblock, pindexDisconnected); m_internals->BlockDisconnected(pblock, pindexDisconnected);
}); });
} }