MCPcopy Create free account
hub / github.com/ElementsProject/elements / AbortNode

Function AbortNode

src/shutdown.cpp:21–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19#endif
20
21bool AbortNode(const std::string& strMessage, bilingual_str user_message)
22{
23 SetMiscWarning(Untranslated(strMessage));
24 LogPrintf("*** %s\n", strMessage);
25 if (user_message.empty()) {
26 user_message = _("A fatal internal error occurred, see debug.log for details");
27 }
28 AbortError(user_message);
29 StartShutdown();
30 return false;
31}
32
33static std::atomic<bool> fRequestShutdown(false);
34#ifdef WIN32

Callers 6

FlushUndoFileMethod · 0.50
FlushBlockFileMethod · 0.50
FindBlockPosMethod · 0.50
FindUndoPosMethod · 0.50
WriteUndoDataForBlockMethod · 0.50
SaveBlockToDiskMethod · 0.50

Calls 5

SetMiscWarningFunction · 0.85
UntranslatedFunction · 0.85
_Function · 0.85
StartShutdownFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected