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

Function FormatStateMessage

src/validation.cpp:460–466  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

458
459/** Convert CValidationState to a human-readable message for logging */
460std::string FormatStateMessage(const CValidationState &state)
461{
462 return strprintf("%s%s (code %i)",
463 state.GetRejectReason(),
464 state.GetDebugMessage().empty() ? "" : ", "+state.GetDebugMessage(),
465 state.GetRejectCode());
466}
467
468static bool IsCurrentForFeeEstimation()
469{

Callers 15

CreateNewBlockMethod · 0.85
ProcessGetBlockDataFunction · 0.85
ProcessMessageFunction · 0.85
ThreadImportFunction · 0.85
AcceptToMemoryPoolWorkerFunction · 0.85
ConnectBlockMethod · 0.85
FlushStateToDiskFunction · 0.85
PruneAndFlushFunction · 0.85
ConnectTipMethod · 0.85
AcceptBlockHeaderMethod · 0.85
AcceptBlockMethod · 0.85
ProcessNewBlockFunction · 0.85

Calls 4

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

Tested by 2

TestBlockValidityFunction · 0.68
TestingSetupMethod · 0.68