Test for many utxo
This commit is contained in:
@@ -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);
|
//fprintf(stderr,"count.%d %.8f\n",count,(double)pcoin->vout[i].interest/COIN);
|
||||||
interests[count++] = pcoin->vout[i].interest;
|
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)
|
else if (n < coinLowestLarger.first)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user