X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fkernelrecord.cpp;h=54f71e987867bb914f83f0ee2a9f51659cb49bd9;hp=8c1d778638cf77eb372c006fea51129b56eb7ecc;hb=0adb53d61133271fad88acb23b019e98e954acc0;hpb=acdbd44af1807b5114e6edd480680395478a2f38 diff --git a/src/kernelrecord.cpp b/src/kernelrecord.cpp index 8c1d778..54f71e9 100644 --- a/src/kernelrecord.cpp +++ b/src/kernelrecord.cpp @@ -33,11 +33,11 @@ vector KernelRecord::decomposeOutput(const CWallet *wallet, const int64 nTime = wtx.GetTxTime(); uint256 hash = wtx.GetHash(); std::map mapValue = wtx.mapValue; - int64 nDayWeight = (min((GetAdjustedTime() - nTime), (int64)(nStakeMaxAge+nStakeMinAge)) - nStakeMinAge); // DayWeight * 86400, ÷òîáû áûë - // ïðàâèëüíûé ðàñ÷¸ò CoinAge + int64 nDayWeight = (min((GetAdjustedTime() - nTime), (int64)(nStakeMaxAge+nStakeMinAge)) - nStakeMinAge); // DayWeight * 86400, чтобы был + // правильный расчёт CoinAge if (showTransaction(wtx)) { - for (int nOut = 0; nOut < wtx.vout.size(); nOut++) + for (unsigned int nOut = 0; nOut < wtx.vout.size(); nOut++) { CTxOut txOut = wtx.vout[nOut]; if( wallet->IsMine(txOut) ) {