From 92c2aa6ba5f0e5a9e3819bcb5418d861531552b9 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 23 Feb 2017 18:22:58 +0200 Subject: [PATCH] Test for many utxo --- src/wallet/wallet.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 48bacd562..05a18c8cf 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2384,6 +2384,11 @@ bool CWallet::SelectCoinsMinConf(const CAmount& nTargetValue, int nConfMine, int //fprintf(stderr,"count.%d %.8f\n",count,(double)pcoin->vout[i].interest/COIN); interests[count++] = pcoin->vout[i].interest; } + if ( nTotalLower > 2*nTargetValue + CENT ) + { + fprintf(stderr,"why bother with all the utxo if we have double what is needed?\n"); + break; + } } else if (n < coinLowestLarger.first) {