Revert "Merge branch 'Asher-Dev' into dev"

This reverts commit 825f311483, reversing
changes made to ecbd54c3b4.
This commit is contained in:
Asher Dawes
2018-08-11 15:47:54 -07:00
parent 825f311483
commit 1be399925e
5 changed files with 20 additions and 206 deletions

View File

@@ -628,12 +628,9 @@ bool CBlockTreeDB::LoadBlockIndexGuts()
pcursor->Seek(ssKeySet.str());
// Load mapBlockIndex
LogPrintf("Past the pcursor->Seek\n");
while (pcursor->Valid()) {
LogPrintf("Before interruption_point\n");
boost::this_thread::interruption_point();
try {
LogPrintf("Before pcursor->key\n");
leveldb::Slice slKey = pcursor->key();
CDataStream ssKey(slKey.data(), slKey.data()+slKey.size(), SER_DISK, CLIENT_VERSION);
char chType;
@@ -666,9 +663,7 @@ bool CBlockTreeDB::LoadBlockIndexGuts()
pindexNew->nSproutValue = diskindex.nSproutValue;
// Consistency checks
LogPrintf("Debug Before the auto header\n");
auto header = pindexNew->GetBlockHeader();
LogPrintf("Debug Past the auto header\n");
if (header.GetHash() != pindexNew->GetBlockHash())
return error("LoadBlockIndex(): block header inconsistency detected: on-disk = %s, in-memory = %s",
diskindex.ToString(), pindexNew->ToString());