func (s *Daemon) SetPeers(in []PeerInfo) {
	peers := make([]PeerInfo, len(in))
	copy(peers, in)

	for i, p := range peers {
		if s.conf.GRPCListenAddress == p.GRPCAddress {
			peers[i].IsOwner = true
		}
	}
	s.V1Server.SetPeers(peers)
}
// SetPeers sets the peers for this daemon
SetPeers sets the peers for this daemon
// SetPeers sets the peers for this daemon
func (s *Daemon) SetPeers(in []PeerInfo) {
	peers := make([]PeerInfo, len(in))
	copy(peers, in)
	for i, p := range peers {
		if s.conf.GRPCListenAddress == p.GRPCAddress {
			peers[i].IsOwner = true
		}
	}
	s.V1Server.SetPeers(peers)
}
func ( s * Daemon ) SetPeers ( in [ ] PeerInfo ) { peers := make ( [ ] PeerInfo , len ( in ) ) copy ( peers , in ) for i , p := range peers { if s . conf . GRPCListenAddress == p . GRPCAddress { peers [ i ] . IsOwner = true } } s . V1Server . SetPeers ( peers ) }
SetPeers sets the peers for this daemon
SetPeers sets the peers for this daemon