@@ -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
|
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[8192],lowest_interest = 0; int32_t count = 0;
|
uint64_t interests[10000],lowest_interest = 0; int32_t count = 0;
|
||||||
setCoinsRet.clear();
|
setCoinsRet.clear();
|
||||||
memset(interests,0,sizeof(interests));
|
memset(interests,0,sizeof(interests));
|
||||||
nValueRet = 0;
|
nValueRet = 0;
|
||||||
@@ -2448,7 +2448,7 @@ bool CWallet::SelectCoinsMinConf(const CAmount& nTargetValue, int nConfMine, int
|
|||||||
LogPrint("selectcoins", "SelectCoins() best subset: ");
|
LogPrint("selectcoins", "SelectCoins() best subset: ");
|
||||||
for (unsigned int i = 0; i < vValue.size(); i++)
|
for (unsigned int i = 0; i < vValue.size(); i++)
|
||||||
if (vfBest[i])
|
if (vfBest[i])
|
||||||
LogPrint("selectcoins", "%s + %s, ", FormatMoney(vValue[i].first),FormatMoney(i < count ? interests[i] : 0));
|
LogPrint("selectcoins", "%s", FormatMoney(vValue[i].first));
|
||||||
LogPrint("selectcoins", "total %s\n", FormatMoney(nBest));
|
LogPrint("selectcoins", "total %s\n", FormatMoney(nBest));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user