mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
Merge #8357: [mempool] Fix relaypriority calculation error
94a34a5
Fix relaypriority calculation error (maiiz)
This commit is contained in:
parent
0adb4b714a
commit
b224c02090
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user