Also call ProcessTx from sendrawtransaction and RelayWalletTransaction

This commit is contained in:
Alexander Block 2019-02-28 14:01:11 +01:00
parent 1d2d370cd0
commit 68cfdc9325
2 changed files with 4 additions and 0 deletions

View File

@ -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");
}

View File

@ -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;