From 75bb5f94f4b7a348d81545d3d360c81826ab7a58 Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Fri, 13 Jul 2018 19:19:16 +0000 Subject: [PATCH] Update comment as per @arielgabizon --- src/wallet/rpcwallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index cef9f569e..22f203494 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -3716,7 +3716,7 @@ UniValue z_sendmany(const UniValue& params, bool fHelp) throw JSONRPCError(RPC_INVALID_PARAMETER, strprintf("Small transaction amount %s has fee %s that is greater than the default fee %s", FormatMoney(nTotalOut), FormatMoney(nFee), FormatMoney(nDefaultFee))); } } else { - // Check that the user specified fee is sane. + // Check that the user specified fee is sane and also greater than the default fee. if (nFee > nTotalOut) { throw JSONRPCError(RPC_INVALID_PARAMETER, strprintf("Fee %s is greater than the sum of outputs %s", FormatMoney(nFee), FormatMoney(nTotalOut))); }