mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-02 19:19:41 +01:00
log: Use LogError for fatal errors
This commit is contained in:
@@ -137,7 +137,7 @@ bool CCoinsViewDB::BatchWrite(CoinsViewCacheCursor& cursor, const uint256 &hashB
|
||||
if (m_options.simulate_crash_ratio) {
|
||||
static FastRandomContext rng;
|
||||
if (rng.randrange(m_options.simulate_crash_ratio) == 0) {
|
||||
LogPrintf("Simulating a crash. Goodbye.\n");
|
||||
LogError("Simulating a crash. Goodbye.");
|
||||
_Exit(0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user