2023-05-09 11:15:46 +02:00
|
|
|
// Copyright (c) 2023 The Bitcoin Core developers
|
|
|
|
// Distributed under the MIT software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
|
|
|
#ifndef BITCOIN_NODE_ABORT_H
|
|
|
|
#define BITCOIN_NODE_ABORT_H
|
|
|
|
|
|
|
|
#include <atomic>
|
2024-03-15 21:42:44 +01:00
|
|
|
|
|
|
|
struct bilingual_str;
|
2023-05-09 11:15:46 +02:00
|
|
|
|
2023-07-07 17:32:54 -04:00
|
|
|
namespace util {
|
|
|
|
class SignalInterrupt;
|
|
|
|
} // namespace util
|
|
|
|
|
2023-05-09 11:15:46 +02:00
|
|
|
namespace node {
|
2024-03-15 21:42:44 +01:00
|
|
|
void AbortNode(util::SignalInterrupt* shutdown, std::atomic<int>& exit_status, const bilingual_str& message);
|
2023-05-09 11:15:46 +02:00
|
|
|
} // namespace node
|
|
|
|
|
|
|
|
#endif // BITCOIN_NODE_ABORT_H
|