fix mergetoaddress

This commit is contained in:
blackjok3r
2019-02-15 00:19:27 +08:00
parent d7a122c548
commit 3c605c86a0

View File

@@ -5093,7 +5093,7 @@ UniValue z_mergetoaddress(const UniValue& params, bool fHelp)
size_t numNotes = sproutNoteInputs.size() + saplingNoteInputs.size();
//fprintf(stderr, "num utxos.%li\n", numUtxos);
if (numUtxos < 1 && numNotes == 0) {
if (numUtxos < 2 && numNotes == 0) {
throw JSONRPCError(RPC_WALLET_INSUFFICIENT_FUNDS, "Could not find any funds to merge.");
}