Skip to content

Commit

Permalink
settings: skip announcement if rhp4 addresses are unset
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Oct 22, 2024
1 parent 1f3c894 commit 472e1b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion host/settings/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (m *ConfigManager) ProcessActions(index types.ChainIndex) error {
return nil
}
shouldAnnounce = index.Height >= nextHeight || announcement.Address != netaddress
} else {
} else if len(m.rhp4AnnounceAddresses) > 0 {
announceHash, announceIndex, err := m.store.LastV2AnnouncementHash()
if err != nil {
return fmt.Errorf("failed to get last v2 announcement: %w", err)
Expand Down

0 comments on commit 472e1b3

Please sign in to comment.