aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2016-09-27 16:32:26 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2016-09-27 16:33:32 +0200
commite9d5f6fec8fcbd45a1b38e73e96710d7858ddbb3 (patch)
treeeae988c3fa8354395653916286fd2d1579eecacf
parent14e8f9916bebf01d3cd6fc89c704bd870bf50760 (diff)
parent94a34a5d951cee59ef9c9274c5ad49ac2a91ab8a (diff)
Merge #8357: [mempool] Fix relaypriority calculation error
94a34a5 Fix relaypriority calculation error (maiiz)
-rw-r--r--src/coins.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coins.cpp b/src/coins.cpp
index 39db7dedfb..8ff652b474 100644
--- a/src/coins.cpp
+++ b/src/coins.cpp
@@ -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;
}
}