diff --git a/src/dsnotificationinterface.cpp b/src/dsnotificationinterface.cpp index f957a25b7..2bd91ca87 100644 --- a/src/dsnotificationinterface.cpp +++ b/src/dsnotificationinterface.cpp @@ -72,18 +72,12 @@ void CDSNotificationInterface::UpdatedBlockTip(const CBlockIndex *pindexNew, con llmq::quorumDKGSessionManager->UpdatedBlockTip(pindexNew, fInitialDownload); } -void CDSNotificationInterface::SyncTransaction(const CTransactionRef& tx, const CBlockIndex* pindex, int posInBlock) -{ - // TODO when the old InstantSend system is removed, also remove this whole method and all the surrounding compatiblity code - instantsend.SyncTransaction(tx, pindex, posInBlock); -} - void CDSNotificationInterface::TransactionAddedToMempool(const CTransactionRef& ptx) { llmq::quorumInstantSendManager->TransactionAddedToMempool(ptx); llmq::chainLocksHandler->TransactionAddedToMempool(ptx); CPrivateSend::TransactionAddedToMempool(ptx); - SyncTransaction(ptx); + instantsend.SyncTransaction(ptx); } void CDSNotificationInterface::BlockConnected(const std::shared_ptr& pblock, const CBlockIndex* pindex, const std::vector& vtxConflicted) @@ -101,10 +95,10 @@ void CDSNotificationInterface::BlockConnected(const std::shared_ptrvtx.size(); i++) { - SyncTransaction(pblock->vtx[i], pindex, i); + instantsend.SyncTransaction(pblock->vtx[i], pindex, i); } } @@ -115,7 +109,7 @@ void CDSNotificationInterface::BlockDisconnected(const std::shared_ptrvtx) { - SyncTransaction(ptx, pindexDisconnected->pprev, -1); + instantsend.SyncTransaction(ptx, pindexDisconnected->pprev, -1); } } diff --git a/src/dsnotificationinterface.h b/src/dsnotificationinterface.h index b8f480725..2ebcb92f8 100644 --- a/src/dsnotificationinterface.h +++ b/src/dsnotificationinterface.h @@ -29,8 +29,6 @@ protected: private: CConnman& connman; - /* Used by TransactionAddedToMemorypool/BlockConnected/Disconnected */ - void SyncTransaction(const CTransactionRef& tx, const CBlockIndex* pindex = nullptr, int posInBlock = 0); }; #endif // BITCOIN_DSNOTIFICATIONINTERFACE_H