Skip to content

Commit

Permalink
Merge pull request #201 from jl777/dPoW
Browse files Browse the repository at this point in the history
DPoW
  • Loading branch information
jl777 authored Feb 21, 2017
2 parents d74b39f + fcd55e6 commit 0f98f3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2338,7 +2338,7 @@ static void ApproximateBestSubset(vector<pair<CAmount, pair<const CWalletTx*,uns

bool CWallet::SelectCoinsMinConf(const CAmount& nTargetValue, int nConfMine, int nConfTheirs, vector<COutput> vCoins,set<pair<const CWalletTx*,unsigned int> >& setCoinsRet, CAmount& nValueRet, uint64_t *interestp) const
{
uint64_t interests[1024],lowest_interest = 0; int32_t count = 0;
uint64_t interests[8192],lowest_interest = 0; int32_t count = 0;
setCoinsRet.clear();
memset(interests,0,sizeof(interests));
nValueRet = 0;
Expand Down Expand Up @@ -2448,7 +2448,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 + %s, ", FormatMoney(vValue[i].first),FormatMoney(interests[i]));
LogPrint("selectcoins", "%s + %s, ", FormatMoney(vValue[i].first),FormatMoney(i < count ? interests[i] : 0));
LogPrint("selectcoins", "total %s\n", FormatMoney(nBest));
}

Expand Down

0 comments on commit 0f98f3f

Please sign in to comment.