Skip to content

Commit e290b2a

Browse files
authored
Issues #8334
fix bug Issues #8334
1 parent 4831a16 commit e290b2a

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
@@ -275,7 +275,7 @@ double CCoinsViewCache::GetPriority(const CTransaction &tx, int nHeight, CAmount
275275
assert(coins);
276276
if (!coins->IsAvailable(txin.prevout.n)) continue;
277277
if (coins->nHeight <= nHeight) {
278-
dResult += coins->vout[txin.prevout.n].nValue * (nHeight-coins->nHeight);
278+
dResult += (double)(coins->vout[txin.prevout.n].nValue) * (nHeight-coins->nHeight);
279279
inChainInputValue += coins->vout[txin.prevout.n].nValue;
280280
}
281281
}

0 commit comments

Comments
 (0)