You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// PeersOfChannel returns the NetworkMembers considered alive
// and also subscribed to the channel given
func (g *gossipServiceImpl) PeersOfChannel(channel common.ChainID) []discovery.NetworkMember {
gc := g.chanState.getGossipChannelByChainID(channel)
if gc == nil {
g.logger.Debug("No such channel", channel)
return nil
}
// for key, _ := range g.chanState.channels {
// g.logger.Debug("channel:", key)
// }
// debug.PrintStack()
// g.logger.Warningf("g.chanState:%v \t gc.GetPeers():%v\n",g.chanState, gc.GetPeers)
// gc1 := g.chanState.getGossipChannelByChainID(common.ChainID("tcoinchannel"))
// for i, peer := range gc1.GetPeers(){
// g.logger.Debugf("tcoin-------------------->index:%d, peer:%v\n", i, peer)
// }
return gc.GetPeers()
}
The text was updated successfully, but these errors were encountered:
// PeersOfChannel returns the NetworkMembers considered alive
// and also subscribed to the channel given
func (g *gossipServiceImpl) PeersOfChannel(channel common.ChainID) []discovery.NetworkMember {
gc := g.chanState.getGossipChannelByChainID(channel)
if gc == nil {
g.logger.Debug("No such channel", channel)
return nil
}
}
The text was updated successfully, but these errors were encountered: