mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-12 04:30:04 +00:00
QPS-20 implement removeDisconnectedPeerStatus (#6370)
* QPS-20 implement removeDisconnectedPeerStatus * Merge refs/heads/master into remove_disconnected_peer_status * Merge refs/heads/master into remove_disconnected_peer_status * Merge refs/heads/master into remove_disconnected_peer_status * Merge refs/heads/master into remove_disconnected_peer_status * Merge refs/heads/master into remove_disconnected_peer_status * Merge refs/heads/master into remove_disconnected_peer_status * Merge refs/heads/master into remove_disconnected_peer_status * Merge refs/heads/master into remove_disconnected_peer_status * Merge refs/heads/master into remove_disconnected_peer_status * Merge refs/heads/master into remove_disconnected_peer_status * Merge refs/heads/master into remove_disconnected_peer_status * Merge refs/heads/master into remove_disconnected_peer_status * remove function * Merge branch 'remove_disconnected_peer_status' of github.com:prysmaticlabs/prysm into remove_disconnected_peer_status * Merge refs/heads/master into remove_disconnected_peer_status * Merge branch 'remove_disconnected_peer_status' of github.com:prysmaticlabs/prysm into remove_disconnected_peer_status
This commit is contained in:
parent
e45a06cbf1
commit
edb08bd209
@ -158,10 +158,6 @@ func (s *Service) reValidatePeer(ctx context.Context, id peer.ID) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *Service) removeDisconnectedPeerStatus(ctx context.Context, pid peer.ID) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// statusRPCHandler reads the incoming Status RPC from the peer and responds with our version of a status message.
|
||||
// This handler will disconnect any peer that does not match our fork version.
|
||||
func (s *Service) statusRPCHandler(ctx context.Context, msg interface{}, stream libp2pcore.Stream) error {
|
||||
|
@ -146,7 +146,6 @@ func (s *Service) Start() {
|
||||
}
|
||||
|
||||
s.p2p.AddConnectionHandler(s.reValidatePeer, s.sendGenericGoodbyeMessage)
|
||||
s.p2p.AddDisconnectionHandler(s.removeDisconnectedPeerStatus)
|
||||
s.p2p.AddPingMethod(s.sendPingRequest)
|
||||
s.processPendingBlocksQueue()
|
||||
s.processPendingAttsQueue()
|
||||
|
Loading…
Reference in New Issue
Block a user