diff options
| author | Pieter Wuille <[email protected]> | 2012-10-23 00:10:12 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2012-10-23 00:23:39 +0200 |
| commit | 1e64c2d585eeb6217d08a49c4cc7a89e0afd0421 (patch) | |
| tree | 0caef3dfd32f0c7e8fa3aa04670fc09067e6e224 /src/main.cpp | |
| parent | Bugfix: add missing fee check (diff) | |
| download | discoin-1e64c2d585eeb6217d08a49c4cc7a89e0afd0421.tar.xz discoin-1e64c2d585eeb6217d08a49c4cc7a89e0afd0421.zip | |
Bugfix: off-by-one in priority calculation
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index dd2f491ae..4386893ee 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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; } |