Skip to content

Commit d3e4394

Browse files
committed
RPC/Net: getpeerinfo: Deprecate misbehavior_score and update description
1 parent 9996a1e commit d3e4394

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/rpc/net.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,7 @@ static RPCHelpMan getpeerinfo()
187187
"best capture connection behaviors."},
188188
{RPCResult::Type::STR, "transport_protocol_type", "Type of transport protocol: \n" + Join(TRANSPORT_TYPE_DOC, ",\n") + ".\n"},
189189
{RPCResult::Type::STR, "session_id", "The session ID for this connection, or \"\" if there is none (\"v2\" transport protocol only).\n"},
190-
{RPCResult::Type::NUM, "misbehavior_score", "The accumulated misbehavior score for this peer.\n"
191-
"The peer will be disconnected if 100 is reached.\n"},
190+
{RPCResult::Type::NUM, "misbehavior_score", "The misbehavior score for this peer. Always 0, but may be 100 if the peer is about to be disconnected. (DEPRECATED)\n"},
192191
}},
193192
}},
194193
},

0 commit comments

Comments
 (0)