code: func (b *blockManager) NewPeer(sp *ServerPeer) {
  	// Ignore if we are shutting down.
  	if atomic.LoadInt32(&b.shutdown) != 0 {
  		return
  	}
  
  	select {
  	case b.peerChan <- &newPeerMsg{peer: sp}:
  	case <-b.quit:
  		return
  	}
  }
docs: // NewPeer informs the block manager of a newly active peer.