diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 1b6110ec5..ef1be630a 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -5146,9 +5146,6 @@ UniValue z_sendmany(const UniValue& params, bool fHelp, const CPubKey& mypk) } } - // Keep track of addresses to spot duplicates - set setAddress; - // Recipients std::vector taddrRecipients; std::vector zaddrRecipients; @@ -5186,11 +5183,6 @@ UniValue z_sendmany(const UniValue& params, bool fHelp, const CPubKey& mypk) // throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Extreme Privacy! You must send to a zaddr"); //} - // Allowing duplicate receivers helps various HushList protocol operations - //if (setAddress.count(address)) - // throw JSONRPCError(RPC_INVALID_PARAMETER, string("Invalid parameter, duplicated address: ")+address); - setAddress.insert(address); - UniValue this_opret = find_value(o, "opreturn"); if (!this_opret.isNull()) { opretValue = this_opret;