diff options
author | John Newbery <john@johnnewbery.com> | 2019-10-10 11:19:42 -0400 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2019-10-10 11:19:42 -0400 |
commit | 0053e16714323c1694c834fdca74f064a1a33529 (patch) | |
tree | 64cf4fc218b010678a52000a09c3e4fd79f5d258 /src/util | |
parent | a1a07cfe99fc8cee30ba5976dc36b47b1f6532ab (diff) |
[logging] Don't log REJECT code when transaction is rejected
Remove the BIP61 REJECT code from error messages and logs when a
transaction is rejected.
BIP61 support was removed from Bitcoin Core in
fa25f43ac5692082dba3f90456c501eb08f1b75c. The REJECT codes will be
removed from the codebase entirely in the following commit.
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/validation.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/util/validation.cpp b/src/util/validation.cpp index fe1f5a277e..9a0d889447 100644 --- a/src/util/validation.cpp +++ b/src/util/validation.cpp @@ -11,10 +11,9 @@ /** Convert CValidationState to a human-readable message for logging */ std::string FormatStateMessage(const CValidationState &state) { - return strprintf("%s%s (code %i)", + return strprintf("%s%s", state.GetRejectReason(), - state.GetDebugMessage().empty() ? "" : ", "+state.GetDebugMessage(), - state.GetRejectCode()); + state.GetDebugMessage().empty() ? "" : ", "+state.GetDebugMessage()); } const std::string strMessageMagic = "Bitcoin Signed Message:\n"; |