From f87150f4a1862a915cb9af83e59fe084c95ccb8e Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 5 Feb 2017 20:44:31 +0200 Subject: [PATCH] test --- src/wallet/wallet.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index e7034f851..605d0eb99 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2449,7 +2449,7 @@ bool CWallet::SelectCoinsMinConf(const CAmount& nTargetValue, int nConfMine, int LogPrint("selectcoins", "SelectCoins() best subset: "); for (unsigned int i = 0; i < vValue.size(); i++) if (vfBest[i]) - LogPrint("selectcoins", "%s ", FormatMoney(vValue[i].first)); + LogPrint("selectcoins", "%s + %s, ", FormatMoney(vValue[i].first),FormatMoney(interests[i])); LogPrint("selectcoins", "total %s\n", FormatMoney(nBest)); } @@ -2480,6 +2480,8 @@ bool CWallet::SelectCoins(const CAmount& nTargetValue, setvout[out.i].nValue; + if ( KOMODO_EXCHANGEWALLET == 0 ) + value += out.tx->vout[out.i].interest; } if (value <= nTargetValue) { CAmount valueWithCoinbase = 0; @@ -2488,12 +2490,13 @@ bool CWallet::SelectCoins(const CAmount& nTargetValue, setvout[out.i].nValue; + if ( KOMODO_EXCHANGEWALLET == 0 ) + valueWithCoinbase += out.tx->vout[out.i].interest; } fNeedCoinbaseCoinsRet = (valueWithCoinbase >= nTargetValue); } } // coin control -> return all selected outputs (we want all to go into the transaction for sure) - *interestp = 0; if (coinControl && coinControl->HasSelected()) { BOOST_FOREACH(const COutput& out, vCoins)