MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / AbortNode

Function AbortNode

src/main.cpp:2013–2022  ·  view source on GitHub ↗

Abort with a message */

Source from the content-addressed store, hash-verified

2011
2012/** Abort with a message */
2013bool AbortNode(const std::string& strMessage, const std::string& userMessage="")
2014{
2015 strMiscWarning = strMessage;
2016 LogPrintf("*** %s\n", strMessage);
2017 uiInterface.ThreadSafeMessageBox(
2018 userMessage.empty() ? _("Error: A fatal internal error occured, see debug.log for details") : userMessage,
2019 "", CClientUIInterface::MSG_ERROR);
2020 StartShutdown();
2021 return false;
2022}
2023
2024bool AbortNode(CValidationState& state, const std::string& strMessage, const std::string& userMessage="")
2025{

Callers 7

ConnectBlockFunction · 0.85
FlushStateToDiskFunction · 0.85
DisconnectTipFunction · 0.85
ConnectTipFunction · 0.85
AcceptBlockFunction · 0.85
CheckDiskSpaceFunction · 0.85
LoadExternalBlockFileFunction · 0.85

Calls 4

_Function · 0.85
ErrorMethod · 0.80
StartShutdownFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected