numutxos < 2 instead of 0... cant merge 1 utxo

This commit is contained in:
blackjok3r
2018-10-02 00:52:12 +08:00
parent f882623570
commit 478370fd6c

View File

@@ -4429,7 +4429,7 @@ UniValue z_mergetoaddress(const UniValue& params, bool fHelp)
#endif
if (numUtxos == 0 && numNotes == 0) {
if (numUtxos > 2 && numNotes == 0) {
throw JSONRPCError(RPC_WALLET_INSUFFICIENT_FUNDS, "Could not find any funds to merge.");
}