mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
Also call ProcessTx from sendrawtransaction and RelayWalletTransaction
This commit is contained in:
parent
1d2d370cd0
commit
68cfdc9325
@ -1020,6 +1020,7 @@ UniValue sendrawtransaction(const JSONRPCRequest& request)
|
|||||||
throw JSONRPCError(RPC_TRANSACTION_ERROR, state.GetRejectReason());
|
throw JSONRPCError(RPC_TRANSACTION_ERROR, state.GetRejectReason());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
llmq::quorumInstantSendManager->ProcessTx(nullptr, *tx, *g_connman, Params().GetConsensus());
|
||||||
} else if (fHaveChain) {
|
} else if (fHaveChain) {
|
||||||
throw JSONRPCError(RPC_TRANSACTION_ALREADY_IN_CHAIN, "transaction already in block chain");
|
throw JSONRPCError(RPC_TRANSACTION_ALREADY_IN_CHAIN, "transaction already in block chain");
|
||||||
}
|
}
|
||||||
|
@ -1921,6 +1921,9 @@ bool CWalletTx::RelayWalletTransaction(CConnman* connman, const std::string& str
|
|||||||
instantsend.RejectLockRequest((CTxLockRequest)*this);
|
instantsend.RejectLockRequest((CTxLockRequest)*this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
llmq::quorumInstantSendManager->ProcessTx(nullptr, *this->tx, *connman, Params().GetConsensus());
|
||||||
|
|
||||||
if (connman) {
|
if (connman) {
|
||||||
connman->RelayTransaction((CTransaction)*this);
|
connman->RelayTransaction((CTransaction)*this);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user