code: func newPeerConfig(sp *ServerPeer) *peer.Config {
  	return &peer.Config{
  		Listeners: peer.MessageListeners{
  			OnVersion: sp.OnVersion,
  			//OnVerAck:    sp.OnVerAck, // Don't use sendheaders yet
  			OnInv:       sp.OnInv,
  			OnHeaders:   sp.OnHeaders,
  			OnReject:    sp.OnReject,
  			OnFeeFilter: sp.OnFeeFilter,
  			OnAddr:      sp.OnAddr,
  			OnRead:      sp.OnRead,
  			OnWrite:     sp.OnWrite,
  
  			// Note: The reference client currently bans peers that send alerts
  			// not signed with its key.  We could verify against their key, but
  			// since the reference client is currently unwilling to support
  			// other implementations' alert messages, we will not relay theirs.
  			OnAlert: nil,
  		},
  		NewestBlock:      sp.newestBlock,
  		HostToNetAddress: sp.server.addrManager.HostToNetAddress,
  		UserAgentName:    sp.server.userAgentName,
  		UserAgentVersion: sp.server.userAgentVersion,
  		ChainParams:      &sp.server.chainParams,
  		Services:         sp.server.services,
  		ProtocolVersion:  wire.FeeFilterVersion,
  		DisableRelayTx:   true,
  	}
  }
docs: // newPeerConfig returns the configuration for the given ServerPeer.