We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 428ac70 commit 72f3227Copy full SHA for 72f3227
src/util/validation.cpp
@@ -11,6 +11,10 @@
11
/** Convert ValidationState to a human-readable message for logging */
12
std::string FormatStateMessage(const ValidationState &state)
13
{
14
+ if (state.IsValid()) {
15
+ return "Valid";
16
+ }
17
+
18
return strprintf("%s%s",
19
state.GetRejectReason(),
20
state.GetDebugMessage().empty() ? "" : ", "+state.GetDebugMessage());
0 commit comments