Bugfix: off-by-one in priority calculation

This commit is contained in:
Pieter Wuille 2012-10-23 00:10:12 +02:00
parent 9e957fb3b1
commit 1e64c2d585
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}