diff --git a/src/rpc/rawtransaction.cpp b/src/rpc/rawtransaction.cpp index 20d0d22bd..8f78847ad 100644 --- a/src/rpc/rawtransaction.cpp +++ b/src/rpc/rawtransaction.cpp @@ -348,6 +348,15 @@ static UniValue verifytxoutproof(const JSONRPCRequest& request) return res; } + + // Duplicate checking + std::set 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",