Permalink
Browse files

Fix relaypriority calculation error

Github-Pull: #8357
Rebased-From: 94a34a5
  • Loading branch information...
1 parent 9ef3875 commit ce0d817b9b59baa243c3ac0844a654704872aa2f @maiiz maiiz committed with laanwj Jul 18, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/coins.cpp
View
@@ -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;
}
}

0 comments on commit ce0d817

Please sign in to comment.