mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
Merge pull request #1381 from jgarzik/check-deser
Prevent crashes due to missing or corrupted database records
This commit is contained in:
@@ -2133,8 +2133,9 @@ bool LoadExternalBlockFile(FILE* fileIn)
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (std::exception &e)
|
||||
{
|
||||
catch (std::exception &e) {
|
||||
printf("%s() : Deserialize or I/O error caught during load\n",
|
||||
__PRETTY_FUNCTION__);
|
||||
}
|
||||
}
|
||||
printf("Loaded %i blocks from external file\n", nLoaded);
|
||||
|
||||
Reference in New Issue
Block a user