diff options
| author | Wladimir J. van der Laan <[email protected]> | 2016-09-27 16:32:26 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2016-09-27 16:33:32 +0200 |
| commit | e9d5f6fec8fcbd45a1b38e73e96710d7858ddbb3 (patch) | |
| tree | eae988c3fa8354395653916286fd2d1579eecacf /src/coins.cpp | |
| parent | Merge #8810: tests: Add exception error message for JSONRPCException (diff) | |
| parent | Fix relaypriority calculation error (diff) | |
| download | discoin-e9d5f6fec8fcbd45a1b38e73e96710d7858ddbb3.tar.xz discoin-e9d5f6fec8fcbd45a1b38e73e96710d7858ddbb3.zip | |
Merge #8357: [mempool] Fix relaypriority calculation error
94a34a5 Fix relaypriority calculation error (maiiz)
Diffstat (limited to 'src/coins.cpp')
| -rw-r--r-- | src/coins.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coins.cpp b/src/coins.cpp index 39db7dedf..8ff652b47 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; } } |