diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-09-01 09:41:50 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-09-01 09:42:10 +0200 |
| commit | 93f97aab629d6d3b7e2c296b24fc37eef9502cd1 (patch) | |
| tree | 4bd4c5a554e3edf2e579cd3fbd43cf6697a830d8 /src/main.cpp | |
| parent | changed field types in some structures to equivalent unambiguous types (diff) | |
| parent | Perform CVerifyDB on pcoinsdbview instead of pcoinsTip (diff) | |
| download | discoin-93f97aab629d6d3b7e2c296b24fc37eef9502cd1.tar.xz discoin-93f97aab629d6d3b7e2c296b24fc37eef9502cd1.zip | |
Merge pull request #4768
2e28031 Perform CVerifyDB on pcoinsdbview instead of pcoinsTip (Wladimir J. van der Laan)
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index da00b4b53..4aebdadd3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2898,7 +2898,7 @@ CVerifyDB::~CVerifyDB() uiInterface.ShowProgress("", 100); } -bool CVerifyDB::VerifyDB(int nCheckLevel, int nCheckDepth) +bool CVerifyDB::VerifyDB(CCoinsView *coinsview, int nCheckLevel, int nCheckDepth) { LOCK(cs_main); if (chainActive.Tip() == NULL || chainActive.Tip()->pprev == NULL) @@ -2911,7 +2911,7 @@ bool CVerifyDB::VerifyDB(int nCheckLevel, int nCheckDepth) nCheckDepth = chainActive.Height(); nCheckLevel = std::max(0, std::min(4, nCheckLevel)); LogPrintf("Verifying last %i blocks at level %i\n", nCheckDepth, nCheckLevel); - CCoinsViewCache coins(*pcoinsTip, true); + CCoinsViewCache coins(*coinsview, true); CBlockIndex* pindexState = chainActive.Tip(); CBlockIndex* pindexFailure = NULL; int nGoodTransactions = 0; |