@@ -1542,7 +1542,7 @@ bool AcceptToMemoryPoolWorker(CTxMemPool& pool, CValidationState& state, const C
15421542 }
15431543 }
15441544
1545- SyncWithWallets ( tx, NULL );
1545+ GetMainSignals (). SyncTransaction ( tx, NULL , CMainSignals::SYNC_TRANSACTION_NOT_IN_BLOCK );
15461546
15471547 return true ;
15481548}
@@ -2775,7 +2775,7 @@ bool static DisconnectTip(CValidationState& state, const CChainParams& chainpara
27752775 // Let wallets know transactions went from 1-confirmed to
27762776 // 0-confirmed or conflicted:
27772777 BOOST_FOREACH (const CTransaction &tx, block.vtx ) {
2778- SyncWithWallets ( tx, pindexDelete->pprev );
2778+ GetMainSignals (). SyncTransaction ( tx, pindexDelete->pprev , CMainSignals::SYNC_TRANSACTION_NOT_IN_BLOCK );
27792779 }
27802780 return true ;
27812781}
@@ -3059,11 +3059,11 @@ bool ActivateBestChain(CValidationState &state, const CChainParams& chainparams,
30593059 // while _not_ holding the cs_main lock
30603060 BOOST_FOREACH (const CTransaction &tx, txConflicted)
30613061 {
3062- SyncWithWallets ( tx, pindexNewTip);
3062+ GetMainSignals (). SyncTransaction ( tx, pindexNewTip, CMainSignals::SYNC_TRANSACTION_NOT_IN_BLOCK );
30633063 }
30643064 // ... and about transactions that got confirmed:
30653065 for (unsigned int i = 0 ; i < txChanged.size (); i++)
3066- SyncWithWallets (std::get<0 >(txChanged[i]), std::get<1 >(txChanged[i]), std::get<2 >(txChanged[i]));
3066+ GetMainSignals (). SyncTransaction (std::get<0 >(txChanged[i]), std::get<1 >(txChanged[i]), std::get<2 >(txChanged[i]));
30673067
30683068 // Notify external listeners about the new tip.
30693069 GetMainSignals ().UpdatedBlockTip (pindexNewTip, pindexFork, fInitialDownload );
0 commit comments