mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
Improve block database load error reporting
This commit is contained in:
12
src/main.cpp
12
src/main.cpp
@@ -2653,6 +2653,18 @@ bool VerifyDB() {
|
||||
return true;
|
||||
}
|
||||
|
||||
void UnloadBlockIndex()
|
||||
{
|
||||
mapBlockIndex.clear();
|
||||
setBlockIndexValid.clear();
|
||||
pindexGenesisBlock = NULL;
|
||||
nBestHeight = 0;
|
||||
bnBestChainWork = 0;
|
||||
bnBestInvalidWork = 0;
|
||||
hashBestChain = 0;
|
||||
pindexBest = NULL;
|
||||
}
|
||||
|
||||
bool LoadBlockIndex()
|
||||
{
|
||||
if (fTestNet)
|
||||
|
||||
Reference in New Issue
Block a user