diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-04-02 20:49:01 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-04-04 18:08:36 +0200 |
commit | fa91b2b2b3447a3645e7958c7dc4e1946a69cb9c (patch) | |
tree | 58715475a162cc790608a10b3c016ba015201094 /src/validation.cpp | |
parent | fa413f07a14744e7d7f7746e861aabd9cf938f61 (diff) | |
download | bitcoin-fa91b2b2b3447a3645e7958c7dc4e1946a69cb9c.tar.xz |
move-only: Move AbortNode to shutdown
Can be reviewed with the git option
--color-moved=dimmed-zebra
Diffstat (limited to 'src/validation.cpp')
-rw-r--r-- | src/validation.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 19363c0efb..6f184780c8 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -1636,19 +1636,6 @@ bool UndoReadFromDisk(CBlockUndo& blockundo, const CBlockIndex* pindex) return true; } -/** Abort with a message */ -static bool AbortNode(const std::string& strMessage, bilingual_str user_message = bilingual_str()) -{ - SetMiscWarning(Untranslated(strMessage)); - LogPrintf("*** %s\n", strMessage); - if (user_message.empty()) { - user_message = _("A fatal internal error occurred, see debug.log for details"); - } - AbortError(user_message); - StartShutdown(); - return false; -} - static bool AbortNode(BlockValidationState& state, const std::string& strMessage, const bilingual_str& userMessage = bilingual_str()) { AbortNode(strMessage, userMessage); |