Skip to content

Commit b224c02

Browse files
laanwjcodablock
authored andcommitted
Merge bitcoin#8357: [mempool] Fix relaypriority calculation error
94a34a5 Fix relaypriority calculation error (maiiz)
1 parent 0adb4b7 commit b224c02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coins.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ double CCoinsViewCache::GetPriority(const CTransaction &tx, int nHeight, CAmount
253253
const Coin& coin = AccessCoin(txin.prevout);
254254
if (coin.IsSpent()) continue;
255255
if (coin.nHeight <= nHeight) {
256-
dResult += coin.out.nValue * (nHeight-coin.nHeight);
256+
dResult += (double)coin.out.nValue * (nHeight-coin.nHeight);
257257
inChainInputValue += coin.out.nValue;
258258
}
259259
}

0 commit comments

Comments
 (0)