Changeset View
Changeset View
Standalone View
Standalone View
src/txdb.cpp
Show First 20 Lines • Show All 481 Lines • ▼ Show 20 Lines | if (!pcursor->Valid()) { | ||||
return true; | return true; | ||||
} | } | ||||
int64_t count = 0; | int64_t count = 0; | ||||
LogPrintf("Upgrading block index database...\n"); | LogPrintf("Upgrading block index database...\n"); | ||||
int reportDone = -1; | int reportDone = -1; | ||||
std::pair<uint8_t, uint256> key = {DB_BLOCK_INDEX, uint256()}; | std::pair<uint8_t, uint256> key = {DB_BLOCK_INDEX, uint256()}; | ||||
while (pcursor->Valid()) { | while (pcursor->Valid()) { | ||||
boost::this_thread::interruption_point(); | |||||
if (ShutdownRequested()) { | if (ShutdownRequested()) { | ||||
break; | break; | ||||
} | } | ||||
if (!pcursor->GetKey(key) || key.first != DB_BLOCK_INDEX) { | if (!pcursor->GetKey(key) || key.first != DB_BLOCK_INDEX) { | ||||
break; | break; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines |