Convert CValidationState to a human-readable message for logging */
| 458 | |
| 459 | /** Convert CValidationState to a human-readable message for logging */ |
| 460 | std::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 | |
| 468 | static bool IsCurrentForFeeEstimation() |
| 469 | { |