mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-11 20:32:35 -03:00
Fix relaypriority calculation error
This commit is contained in:
parent
f5660d381a
commit
94a34a5d95
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,7 @@ double CCoinsViewCache::GetPriority(const CTransaction &tx, int nHeight, CAmount
|
||||||
assert(coins);
|
assert(coins);
|
||||||
if (!coins->IsAvailable(txin.prevout.n)) continue;
|
if (!coins->IsAvailable(txin.prevout.n)) continue;
|
||||||
if (coins->nHeight <= nHeight) {
|
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;
|
inChainInputValue += coins->vout[txin.prevout.n].nValue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue