don't gossip inactive peers

(cherry picked from commit cc28ce298f)
This commit is contained in:
tycho garen
2022-06-10 07:39:00 -04:00
parent 45ad693b23
commit dfcd59c367

View File

@@ -857,6 +857,9 @@ func (m *PeerManager) Advertise(peerID types.NodeID, limit uint16) []NodeAddress
if peer.ID == peerID {
continue
}
if peer.Inactive {
continue
}
for nodeAddr, addressInfo := range peer.AddressInfo {