mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix(net): add None disconnect reason on PoS p2p violation
This commit is contained in:
@ -237,7 +237,7 @@ where
|
||||
// reject message in POS
|
||||
if self.handle.mode().is_stake() {
|
||||
// connections to peers which send invalid messages should be terminated
|
||||
self.swarm.sessions_mut().disconnect(peer_id);
|
||||
self.swarm.sessions_mut().disconnect(peer_id, None);
|
||||
} else {
|
||||
only_pow(self);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user