Merge #8357: [mempool] Fix relaypriority calculation error

94a34a5 Fix relaypriority calculation error (maiiz)
pull/308/head
Wladimir J. van der Laan 8 years ago
commit e9d5f6fec8
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6

@ -275,7 +275,7 @@ double CCoinsViewCache::GetPriority(const CTransaction &tx, int nHeight, CAmount
assert(coins);
if (!coins->IsAvailable(txin.prevout.n)) continue;
if (coins->nHeight <= nHeight) {
dResult += coins->vout[txin.prevout.n].nValue * (nHeight-coins->nHeight);
dResult += (double)(coins->vout[txin.prevout.n].nValue) * (nHeight-coins->nHeight);
inChainInputValue += coins->vout[txin.prevout.n].nValue;
}
}

Loading…
Cancel
Save