|
|
@ -1542,7 +1542,7 @@ bool AcceptToMemoryPoolWorker(CTxMemPool& pool, CValidationState& state, const C
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
SyncWithWallets(tx, NULL);
|
|
|
|
GetMainSignals().SyncTransaction(tx, NULL, CMainSignals::SYNC_TRANSACTION_NOT_IN_BLOCK);
|
|
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -2775,7 +2775,7 @@ bool static DisconnectTip(CValidationState& state, const CChainParams& chainpara
|
|
|
|
// Let wallets know transactions went from 1-confirmed to
|
|
|
|
// Let wallets know transactions went from 1-confirmed to
|
|
|
|
// 0-confirmed or conflicted:
|
|
|
|
// 0-confirmed or conflicted:
|
|
|
|
BOOST_FOREACH(const CTransaction &tx, block.vtx) {
|
|
|
|
BOOST_FOREACH(const CTransaction &tx, block.vtx) {
|
|
|
|
SyncWithWallets(tx, pindexDelete->pprev);
|
|
|
|
GetMainSignals().SyncTransaction(tx, pindexDelete->pprev, CMainSignals::SYNC_TRANSACTION_NOT_IN_BLOCK);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -3059,11 +3059,11 @@ bool ActivateBestChain(CValidationState &state, const CChainParams& chainparams,
|
|
|
|
// while _not_ holding the cs_main lock
|
|
|
|
// while _not_ holding the cs_main lock
|
|
|
|
BOOST_FOREACH(const CTransaction &tx, txConflicted)
|
|
|
|
BOOST_FOREACH(const CTransaction &tx, txConflicted)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
SyncWithWallets(tx, pindexNewTip);
|
|
|
|
GetMainSignals().SyncTransaction(tx, pindexNewTip, CMainSignals::SYNC_TRANSACTION_NOT_IN_BLOCK);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ... and about transactions that got confirmed:
|
|
|
|
// ... and about transactions that got confirmed:
|
|
|
|
for(unsigned int i = 0; i < txChanged.size(); i++)
|
|
|
|
for(unsigned int i = 0; i < txChanged.size(); i++)
|
|
|
|
SyncWithWallets(std::get<0>(txChanged[i]), std::get<1>(txChanged[i]), std::get<2>(txChanged[i]));
|
|
|
|
GetMainSignals().SyncTransaction(std::get<0>(txChanged[i]), std::get<1>(txChanged[i]), std::get<2>(txChanged[i]));
|
|
|
|
|
|
|
|
|
|
|
|
// Notify external listeners about the new tip.
|
|
|
|
// Notify external listeners about the new tip.
|
|
|
|
GetMainSignals().UpdatedBlockTip(pindexNewTip, pindexFork, fInitialDownload);
|
|
|
|
GetMainSignals().UpdatedBlockTip(pindexNewTip, pindexFork, fInitialDownload);
|
|
|
|