aboutsummaryrefslogtreecommitdiff
path: root/db.cpp
diff options
context:
space:
mode:
authors_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-09-30 16:23:07 +0000
committers_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-09-30 16:23:07 +0000
commita790fa46f40d751307f86c37a709eb119768ce5b (patch)
tree7908fc58d6ce8b54461dadd8ac7f1ba74c9271a7 /db.cpp
parent9b8eb4d6907502e9b1e74b62a850a11655d50ab5 (diff)
don't count or spend payments until they have 1 confirmation,
misc cleanup, changed internal version number from 312 to 31300 -- version 0.3.13 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@158 1a98c847-1fd6-4fd8-948a-caf3550aa51b
Diffstat (limited to 'db.cpp')
-rw-r--r--db.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/db.cpp b/db.cpp
index df500cadb8..a7c18a6ffc 100644
--- a/db.cpp
+++ b/db.cpp
@@ -465,7 +465,7 @@ bool CTxDB::LoadBlockIndex()
CBlockIndex* pindexFork = NULL;
for (CBlockIndex* pindex = pindexBest; pindex && pindex->pprev; pindex = pindex->pprev)
{
- if (pindex->nHeight < 74000 && !mapArgs.count("-checkblocks"))
+ if (pindex->nHeight < nBestHeight-2500 && !mapArgs.count("-checkblocks"))
break;
CBlock block;
if (!block.ReadFromDisk(pindex))