mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Prevent crashes due to missing or corrupted blk????.dat records
In LoadExternalBlockFile(), errors are already caught... silently. Add a warning message, even though we do not abort the program due to load error.
This commit is contained in:
parent
f94b64c2f3
commit
8fe791e4e2
2 changed files with 16 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue