fix(net): add None disconnect reason on PoS p2p violation

This commit is contained in:
Georgios Konstantopoulos
2022-11-16 12:16:28 -08:00
parent ee7140f91e
commit 331a2dbe8f

View File

@ -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);
}