This commit is contained in:
blackjok3rtt
2019-02-15 17:18:40 +08:00
committed by GitHub
parent abf36fd1e4
commit 871b765999

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.");
}