2018-07-27 00:36:45 +02:00
|
|
|
// Copyright (c) 2011-2018 The Bitcoin Core developers
|
2017-03-10 21:47:41 +01:00
|
|
|
// Distributed under the MIT software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
|
|
|
#define BOOST_TEST_MODULE Bitcoin Test Suite
|
|
|
|
|
2017-10-05 22:40:43 +02:00
|
|
|
#include <banman.h>
|
2017-11-10 01:57:53 +01:00
|
|
|
#include <net.h>
|
2017-03-10 21:47:41 +01:00
|
|
|
|
2018-04-02 20:31:40 +02:00
|
|
|
#include <memory>
|
|
|
|
|
2017-03-10 21:47:41 +01:00
|
|
|
#include <boost/test/unit_test.hpp>
|
|
|
|
|
|
|
|
std::unique_ptr<CConnman> g_connman;
|
2017-10-05 19:10:58 +02:00
|
|
|
std::unique_ptr<BanMan> g_banman;
|
2017-03-10 21:47:41 +01:00
|
|
|
|
2017-07-16 14:56:43 +02:00
|
|
|
[[noreturn]] void Shutdown(void* parg)
|
2017-03-10 21:47:41 +01:00
|
|
|
{
|
2017-07-16 14:56:43 +02:00
|
|
|
std::exit(EXIT_SUCCESS);
|
2017-03-10 21:47:41 +01:00
|
|
|
}
|
|
|
|
|
2017-07-16 14:56:43 +02:00
|
|
|
[[noreturn]] void StartShutdown()
|
2017-03-10 21:47:41 +01:00
|
|
|
{
|
2017-07-16 14:56:43 +02:00
|
|
|
std::exit(EXIT_SUCCESS);
|
2017-03-10 21:47:41 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
bool ShutdownRequested()
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|