mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
Bugfix: off-by-one in priority calculation
This commit is contained in:
@@ -3830,7 +3830,7 @@ CBlock* CreateNewBlock(CReserveKey& reservekey)
|
||||
int64 nValueIn = coins.vout[txin.prevout.n].nValue;
|
||||
nTotalIn += nValueIn;
|
||||
|
||||
int nConf = pindexPrev->nHeight - coins.nHeight;
|
||||
int nConf = pindexPrev->nHeight - coins.nHeight + 1;
|
||||
|
||||
dPriority += (double)nValueIn * nConf;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user