Merge #8357: [mempool] Fix relaypriority calculation error

94a34a5 Fix relaypriority calculation error (maiiz)
This commit is contained in:
Wladimir J. van der Laan 2016-09-27 16:32:26 +02:00 committed by Alexander Block
parent 0adb4b714a
commit b224c02090

View File

@ -253,7 +253,7 @@ double CCoinsViewCache::GetPriority(const CTransaction &tx, int nHeight, CAmount
const Coin& coin = AccessCoin(txin.prevout);
if (coin.IsSpent()) continue;
if (coin.nHeight <= nHeight) {
dResult += coin.out.nValue * (nHeight-coin.nHeight);
dResult += (double)coin.out.nValue * (nHeight-coin.nHeight);
inChainInputValue += coin.out.nValue;
}
}