mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 10:38:42 +01:00
doc: Fix outdated dev comment about logging
This commit is contained in:
parent
2f6dca4d1c
commit
fafb7875e1
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user