mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-12-03 07:47:05 +00:00
Reputation changes requires reason (#4277)
This commit is contained in:
1 parent
5edc4350b4
commit
5ec0923285
14 files changed
+233
-156
No files matched your search
@@ -940,7 +940,10 @@ where
|
||||
// a different chain, or a node that doesn't speak the same protocol(s). We
|
||||
// decrease the node's reputation, hence lowering the chances we try this node
|
||||
// again in the short term.
|
||||
self.peerset.report_peer(source.clone(), i32::min_value());
|
||||
self.peerset.report_peer(
|
||||
source.clone(),
|
||||
peerset::ReputationChange::new(i32::min_value(), "Protocol error")
|
||||
);
|
||||
self.disconnect_peer_inner(&source, Some(Duration::from_secs(5)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user