From 1959f3e4a59b8282f480669dbaf420b51c81df51 Mon Sep 17 00:00:00 2001 From: Alexander Block Date: Thu, 28 Feb 2019 13:43:04 +0100 Subject: [PATCH] Handle incoming TXs by calling CInstantXManager::ProcessTx This also includes handling of TXs that were previously orphanced --- src/net_processing.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/net_processing.cpp b/src/net_processing.cpp index b53beb3d1..cdd2b522e 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -2094,6 +2094,10 @@ bool static ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStr instantsend.Vote(tx.GetHash(), connman); } + if (nInvType != MSG_TXLOCK_REQUEST) { + llmq::quorumInstantSendManager->ProcessTx(pfrom, tx, connman, chainparams.GetConsensus()); + } + mempool.check(pcoinsTip); connman.RelayTransaction(tx); for (unsigned int i = 0; i < tx.vout.size(); i++) { @@ -2138,6 +2142,8 @@ bool static ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStr vWorkQueue.emplace_back(orphanHash, i); } vEraseQueue.push_back(orphanHash); + + llmq::quorumInstantSendManager->ProcessTx(pfrom, orphanTx, connman, chainparams.GetConsensus()); } else if (!fMissingInputs2) {