mirror of
https://github.com/dashpay/dash.git
synced 2024-12-29 05:49:11 +01:00
Bugfix: off-by-one in priority calculation
This commit is contained in:
parent
9e957fb3b1
commit
1e64c2d585
@ -3830,7 +3830,7 @@ CBlock* CreateNewBlock(CReserveKey& reservekey)
|
|||||||
int64 nValueIn = coins.vout[txin.prevout.n].nValue;
|
int64 nValueIn = coins.vout[txin.prevout.n].nValue;
|
||||||
nTotalIn += nValueIn;
|
nTotalIn += nValueIn;
|
||||||
|
|
||||||
int nConf = pindexPrev->nHeight - coins.nHeight;
|
int nConf = pindexPrev->nHeight - coins.nHeight + 1;
|
||||||
|
|
||||||
dPriority += (double)nValueIn * nConf;
|
dPriority += (double)nValueIn * nConf;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user