Changeset View
Changeset View
Standalone View
Standalone View
src/validation.cpp
Show First 20 Lines • Show All 1,167 Lines • ▼ Show 20 Lines | |||||
/** Abort with a message */ | /** Abort with a message */ | ||||
static bool AbortNode(const std::string &strMessage, | static bool AbortNode(const std::string &strMessage, | ||||
const std::string &userMessage = "", | const std::string &userMessage = "", | ||||
unsigned int prefix = 0) { | unsigned int prefix = 0) { | ||||
SetMiscWarning(strMessage); | SetMiscWarning(strMessage); | ||||
LogPrintf("*** %s\n", strMessage); | LogPrintf("*** %s\n", strMessage); | ||||
if (!userMessage.empty()) { | if (!userMessage.empty()) { | ||||
uiInterface.ThreadSafeMessageBox( | uiInterface.ThreadSafeMessageBox(Untranslated(userMessage), "", | ||||
userMessage, "", CClientUIInterface::MSG_ERROR | prefix); | CClientUIInterface::MSG_ERROR | | ||||
prefix); | |||||
} else { | } else { | ||||
uiInterface.ThreadSafeMessageBox( | uiInterface.ThreadSafeMessageBox( | ||||
_("Error: A fatal internal error occurred, see debug.log for " | _("Error: A fatal internal error occurred, see debug.log for " | ||||
"details") | "details"), | ||||
.translated, | |||||
"", | "", | ||||
CClientUIInterface::MSG_ERROR | CClientUIInterface::MSG_NOPREFIX); | CClientUIInterface::MSG_ERROR | CClientUIInterface::MSG_NOPREFIX); | ||||
} | } | ||||
StartShutdown(); | StartShutdown(); | ||||
return false; | return false; | ||||
} | } | ||||
static bool AbortNode(BlockValidationState &state, | static bool AbortNode(BlockValidationState &state, | ||||
▲ Show 20 Lines • Show All 4,568 Lines • Show Last 20 Lines |