diff options
author | maiiz <maiiz@users.noreply.github.com> | 2016-07-18 15:01:34 +0800 |
---|---|---|
committer | zhaohaitao <zhaohaitao@huobi.com> | 2016-09-20 11:45:30 +0800 |
commit | 94a34a5d951cee59ef9c9274c5ad49ac2a91ab8a (patch) | |
tree | d8d4b269688e5264b4a4eeead7004363dd2fb270 /src/coins.cpp | |
parent | f5660d381a37383a07610262d12ec6f8ce47cf01 (diff) |
Fix relaypriority calculation error
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 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; } } |