Expose FormatStateMessage

(cherry picked from commit bitcoin/bitcoin@5f12263302)
This commit is contained in:
Alex Morcos 2015-10-28 14:56:28 -04:00 committed by Jack Grigg
parent 0d9a5442eb
commit f18c96d7ae
2 changed files with 3 additions and 1 deletions

View File

@ -1759,7 +1759,7 @@ CAmount GetMinRelayFee(const CTransaction& tx, const CTxMemPool& pool, unsigned
}
/** Convert CValidationState to a human-readable message for logging */
static std::string FormatStateMessage(const CValidationState &state)
std::string FormatStateMessage(const CValidationState &state)
{
return strprintf("%s%s (code %i)",
state.GetRejectReason(),

View File

@ -348,6 +348,8 @@ bool AcceptToMemoryPool(
CTxMemPool& pool, CValidationState &state, const CTransaction &tx, bool fLimitFree,
bool* pfMissingInputs, bool fRejectAbsurdFee=false);
/** Convert CValidationState to a human-readable message for logging */
std::string FormatStateMessage(const CValidationState &state);
struct CNodeStateStats {
int nMisbehavior;