Skip to content

Commit

Permalink
Fix relaypriority calculation error
Browse files Browse the repository at this point in the history
  • Loading branch information
maiiz authored and zhaohaitao committed Sep 20, 2016
1 parent f5660d3 commit 94a34a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coins.cpp
Original file line number Diff line number Diff line change
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 94a34a5

Please sign in to comment.