move-only: Move AbortNode to shutdown

Can be reviewed with the git option
--color-moved=dimmed-zebra
This commit is contained in:
MarcoFalke
2021-04-02 20:49:01 +02:00
parent fa413f07a1
commit fa91b2b2b3
3 changed files with 19 additions and 13 deletions

View File

@@ -6,6 +6,11 @@
#ifndef BITCOIN_SHUTDOWN_H
#define BITCOIN_SHUTDOWN_H
#include <util/translation.h> // For bilingual_str
/** Abort with a message */
bool AbortNode(const std::string& strMessage, bilingual_str user_message = bilingual_str{});
/** Initialize shutdown state. This must be called before using either StartShutdown(),
* AbortShutdown() or WaitForShutdown(). Calling ShutdownRequested() is always safe.
*/