mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 22:18:54 +01:00
doc: Fix outdated dev comment about logging
This commit is contained in:
@@ -839,7 +839,7 @@ std::set<BlockFilterType> g_enabled_filter_types;
|
||||
{
|
||||
// Rather than throwing std::bad-alloc if allocation fails, terminate
|
||||
// immediately to (try to) avoid chain corruption.
|
||||
// Since LogPrintf may itself allocate memory, set the handler directly
|
||||
// Since logging may itself allocate memory, set the handler directly
|
||||
// to terminate first.
|
||||
std::set_new_handler(std::terminate);
|
||||
LogError("Out of memory. Terminating.\n");
|
||||
|
||||
Reference in New Issue
Block a user