Inside Bitcoin
Opening the selected file…
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1// Copyright (c) 2023-present The Bitcoin Core developers2// Distributed under the MIT software license, see the accompanying3// file COPYING or http://www.opensource.org/licenses/mit-license.php.5#include <node/abort.h>7#include <logging.h>8#include <node/interface_ui.h>9#include <node/warnings.h>10#include <util/fs.h>11#include <util/signalinterrupt.h>12#include <util/translation.h>14#include <atomic>15#include <cstdlib>17namespace node {19void AbortNode(const std::function<bool()>& shutdown_request, std::atomic<int>& exit_status, const bilingual_str& message, node::Warnings* warnings)20{21if (warnings) warnings->Set(Warning::FATAL_INTERNAL_ERROR, message);22InitError(strprintf(_("A fatal internal error occurred, see %s for details: %s"), fs::PathToString(LogInstance().m_file_path.filename()), message));23exit_status.store(EXIT_FAILURE);24if (shutdown_request && !shutdown_request()) {25LogError("Failed to send shutdown signal\n");26};27}28} // namespace node