From 68cfdc9325401a2c667674e56ba4b50364a31698 Mon Sep 17 00:00:00 2001 From: Alexander Block Date: Thu, 28 Feb 2019 14:01:11 +0100 Subject: [PATCH] Also call ProcessTx from sendrawtransaction and RelayWalletTransaction --- src/rpc/rawtransaction.cpp | 1 + src/wallet/wallet.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/rpc/rawtransaction.cpp b/src/rpc/rawtransaction.cpp index 8ece8720fc..afdece3aab 100644 --- a/src/rpc/rawtransaction.cpp +++ b/src/rpc/rawtransaction.cpp @@ -1020,6 +1020,7 @@ UniValue sendrawtransaction(const JSONRPCRequest& request) throw JSONRPCError(RPC_TRANSACTION_ERROR, state.GetRejectReason()); } } + llmq::quorumInstantSendManager->ProcessTx(nullptr, *tx, *g_connman, Params().GetConsensus()); } else if (fHaveChain) { throw JSONRPCError(RPC_TRANSACTION_ALREADY_IN_CHAIN, "transaction already in block chain"); } diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 7a8fde9ff1..ea1cc14f20 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -1921,6 +1921,9 @@ bool CWalletTx::RelayWalletTransaction(CConnman* connman, const std::string& str instantsend.RejectLockRequest((CTxLockRequest)*this); } } + + llmq::quorumInstantSendManager->ProcessTx(nullptr, *this->tx, *connman, Params().GetConsensus()); + if (connman) { connman->RelayTransaction((CTransaction)*this); return true;