Skip to content

Commit

Permalink
Fix relaypriority calculation error
Browse files Browse the repository at this point in the history
Github-Pull: bitcoin#8357
Rebased-From: 94a34a5
  • Loading branch information
maiiz authored and laanwj committed Oct 27, 2016
1 parent 9ef3875 commit ce0d817
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coins.cpp
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit ce0d817

Please sign in to comment.