aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.cpp
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2020-08-24 16:56:15 +0100
committerJohn Newbery <john@johnnewbery.com>2020-09-07 11:16:12 +0100
commitbb6a32ce9983c72afa90f41a43a47ffd703ca006 (patch)
tree5623c972c02aafaeab21159052bb0e2778d62551 /src/net_processing.cpp
parentaa114b1c9b06c2bd3ed936bbb9fb32b31f75bdb2 (diff)
downloadbitcoin-bb6a32ce9983c72afa90f41a43a47ffd703ca006.tar.xz
[net processing] Move Misbehaving() to PeerManager
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r--src/net_processing.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp
index 443e7c6eea..168a3cedea 100644
--- a/src/net_processing.cpp
+++ b/src/net_processing.cpp
@@ -1110,11 +1110,7 @@ unsigned int LimitOrphanTxSize(unsigned int nMaxOrphans)
return nEvicted;
}
-/**
- * Increment peer's misbehavior score. If the new value >= DISCOURAGEMENT_THRESHOLD, mark the node
- * to be discouraged, meaning the peer might be disconnected and added to the discouragement filter.
- */
-void Misbehaving(const NodeId pnode, const int howmuch, const std::string& message)
+void PeerManager::Misbehaving(const NodeId pnode, const int howmuch, const std::string& message)
{
assert(howmuch > 0);