Skip to content

Commit 5f12263

Browse files
committed
Expose FormatStateMessage
1 parent 1f09287 commit 5f12263

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ CAmount GetMinRelayFee(const CTransaction& tx, const CTxMemPool& pool, unsigned
816816
}
817817

818818
/** Convert CValidationState to a human-readable message for logging */
819-
static std::string FormatStateMessage(const CValidationState &state)
819+
std::string FormatStateMessage(const CValidationState &state)
820820
{
821821
return strprintf("%s%s (code %i)",
822822
state.GetRejectReason(),

src/main.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ void PruneAndFlush();
257257
bool AcceptToMemoryPool(CTxMemPool& pool, CValidationState &state, const CTransaction &tx, bool fLimitFree,
258258
bool* pfMissingInputs, bool fOverrideMempoolLimit=false, bool fRejectAbsurdFee=false);
259259

260+
/** Convert CValidationState to a human-readable message for logging */
261+
std::string FormatStateMessage(const CValidationState &state);
260262

261263
struct CNodeStateStats {
262264
int nMisbehavior;

0 commit comments

Comments
 (0)