Expose FormatStateMessage
(cherry picked from commit bitcoin/bitcoin@5f12263302)
This commit is contained in:
parent
0d9a5442eb
commit
f18c96d7ae
|
@ -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(),
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue