MCPcopy Create free account
hub / github.com/LUX-Core/lux / FormatStateMessage

Function FormatStateMessage

src/consensus/validation.cpp:63–69  ·  view source on GitHub ↗

Convert CValidationState to a human-readable message for logging */

Source from the content-addressed store, hash-verified

61
62/** Convert CValidationState to a human-readable message for logging */
63std::string FormatStateMessage(const CValidationState &state)
64{
65 return strprintf("%s%s (code %i)",
66 state.GetRejectReason(),
67 state.GetDebugMessage().empty() ? "" : ", "+state.GetDebugMessage(),
68 state.GetRejectCode());
69}
70
71/**
72 * Calculates the block height and previous block's median time past at

Callers 8

AcceptToMemoryPoolFunction · 0.85
ConnectBlockFunction · 0.85
AcceptBlockHeaderFunction · 0.85
AcceptBlockFunction · 0.85
TestBlockValidityFunction · 0.85
PruneBlockFilesManualFunction · 0.85
VerifyDBMethod · 0.85
ProcessMessageFunction · 0.85

Calls 4

GetRejectReasonMethod · 0.80
GetDebugMessageMethod · 0.80
GetRejectCodeMethod · 0.80
emptyMethod · 0.45

Tested by 1

TestBlockValidityFunction · 0.68