mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-08 22:23:11 +00:00
don't gossip inactive peers
This commit is contained in:
@@ -834,6 +834,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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user