Skip to content

Commit 3bd71d5

Browse files
fix docs
1 parent 8e5fd8a commit 3bd71d5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

beacon-chain/p2p/service.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,6 @@ func (s *Service) subscribeReachabilityEvents() error {
606606
// updateENRFromReachableAddrs updates the ENR with IP addresses discovered
607607
// by AutoNAT if the ENR doesn't already have a static/fallback IP configured.
608608
func (s *Service) updateENRFromReachableAddrs(reachableAddrs []multiaddr.Multiaddr) {
609-
// Skip if HostAddress was already configured
610609
if s.cfg != nil && s.cfg.HostAddress != "" {
611610
return
612611
}
@@ -629,7 +628,6 @@ func (s *Service) updateENRFromReachableAddrs(reachableAddrs []multiaddr.Multiad
629628
continue
630629
}
631630

632-
// Set fallback and static IP like we do for HostAddress
633631
localNode.SetFallbackIP(ip)
634632
localNode.SetStaticIP(ip)
635633

0 commit comments

Comments
 (0)