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

This commit is contained in:
Simon 2016-10-20 17:03:57 -07:00
parent 1218603f73
commit 75407c6872
1 changed files with 0 additions and 2 deletions

View File

@ -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_;