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

Function AbortNode

src/validation.cpp:1565–1574  ·  view source on GitHub ↗

Abort with a message */

Source from the content-addressed store, hash-verified

1563
1564/** Abort with a message */
1565static bool AbortNode(const std::string& strMessage, const std::string& userMessage="")
1566{
1567 SetMiscWarning(strMessage);
1568 LogPrintf("*** %s\n", strMessage);
1569 uiInterface.ThreadSafeMessageBox(
1570 userMessage.empty() ? _("Error: A fatal internal error occurred, see debug.log for details") : userMessage,
1571 "", CClientUIInterface::MSG_ERROR);
1572 StartShutdown();
1573 return false;
1574}
1575
1576static bool AbortNode(CValidationState& state, const std::string& strMessage, const std::string& userMessage="")
1577{

Callers 10

FlushBlockFileFunction · 0.85
WriteUndoDataForBlockFunction · 0.85
ConnectBlockMethod · 0.85
FlushStateToDiskFunction · 0.85
DisconnectTipMethod · 0.85
ConnectTipMethod · 0.85
SaveBlockToDiskFunction · 0.85
AcceptBlockMethod · 0.85
CheckDiskSpaceFunction · 0.85
LoadExternalBlockFileFunction · 0.85

Calls 5

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

Tested by

no test coverage detected