rpc: Avoid creating non-standard raw transactions

Github-Pull: #14890
Rebased-From: fa4c8679ed
This commit is contained in:
MarcoFalke 2018-12-06 16:13:53 -05:00 committed by Anthony Fieroni
parent eea8378f6c
commit 659dcb6c59

View file

@ -348,6 +348,15 @@ static UniValue verifytxoutproof(const JSONRPCRequest& request)
return res;
}
// Duplicate checking
std::set<CTxDestination> destinations;
bool has_data{false};
if (has_data) {
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, duplicate key: data");
}
has_data = true;
static UniValue createrawtransaction(const JSONRPCRequest& request)
{
RPCHelpMan{"createrawtransaction",