From 75407c6872439da88517e1707d243d25565c0291 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 20 Oct 2016 17:03:57 -0700 Subject: [PATCH] Fix issue where z_sendmany is too strict and does not allow integer based amount e.g. 1 which is the same as 1.0 --- src/wallet/rpcwallet.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 4d6608570..8e80400e2 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -3222,8 +3222,6 @@ Value z_sendmany(const Array& params, bool fHelp) throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, expected object"); const Object& o = output.get_obj(); - RPCTypeCheck(o, boost::assign::map_list_of("address", str_type)("amount", real_type)); - // sanity check, report error if unknown key-value pairs for (const Pair& p : o) { std::string s = p.name_;