[#PeerManager-UnitTestMisbehaving]
= xref:PeerManager.adoc[PeerManager]::UnitTestMisbehaving
:relfileprefix: ../
:mrdocs:

Apply misbehavior scoring to a peer directly&period; Public for unit testing&period;

== Synopsis

Declared in `&lt;net&lowbar;processing&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void
UnitTestMisbehaving(xref:NodeId-08.adoc[NodeId] peer&lowbar;id) = 0;
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *peer&lowbar;id*
| The id of the peer to mark as misbehaving&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
