aboutsummaryrefslogtreecommitdiff
path: root/src/shutdown.h
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-04-02 20:49:01 +0200
committerMarcoFalke <falke.marco@gmail.com>2021-04-04 18:08:36 +0200
commitfa91b2b2b3447a3645e7958c7dc4e1946a69cb9c (patch)
tree58715475a162cc790608a10b3c016ba015201094 /src/shutdown.h
parentfa413f07a14744e7d7f7746e861aabd9cf938f61 (diff)
downloadbitcoin-fa91b2b2b3447a3645e7958c7dc4e1946a69cb9c.tar.xz
move-only: Move AbortNode to shutdown
Can be reviewed with the git option --color-moved=dimmed-zebra
Diffstat (limited to 'src/shutdown.h')
-rw-r--r--src/shutdown.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/shutdown.h b/src/shutdown.h
index b2fbdb8cfb..ff56c6bd87 100644
--- a/src/shutdown.h
+++ b/src/shutdown.h
@@ -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.
*/