func (pool *BlockPool) deletePeer(peer *BpPeer) {
	if peer == nil {
		return
	}
	peer.Cleanup()
	delete(pool.peers, peer.ID)

	if peer.Height == pool.MaxPeerHeight {
		pool.updateMaxPeerHeight()
	}
}
// Cleans and deletes the peer. Recomputes the max peer height.
Cleans and deletes the peer. Recomputes the max peer height.
// Cleans and deletes the peer . Recomputes the max peer height .
func (pool *BlockPool) deletePeer(peer *BpPeer) {
	if peer == nil {
		return
	}
	peer.Cleanup()
	delete(pool.peers, peer.ID)
	if peer.Height == pool.MaxPeerHeight {
		pool.updateMaxPeerHeight()
	}
}
func ( pool * BlockPool ) deletePeer ( peer * BpPeer ) { if peer == nil { return } peer . Cleanup ( ) delete ( pool . peers , peer . ID ) if peer . Height == pool . MaxPeerHeight { pool . updateMaxPeerHeight ( ) } }
Cleans and deletes the peer.
Cleans and deletes the peer .