Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tapcfg: add flag to disable default federation server #1190

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

guggero
Copy link
Member

@guggero guggero commented Nov 14, 2024

Fixes #1024.

This commit adds a new universe.no-default-federation boolean flag that allows the user to disable adding the default federation server.

@guggero guggero requested review from gijswijs and jharveyb November 14, 2024 16:15
@coveralls
Copy link

coveralls commented Nov 14, 2024

Pull Request Test Coverage Report for Build 11842131999

Details

  • 0 of 26 (0.0%) changed or added relevant lines in 1 file are covered.
  • 21 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-0.02%) to 41.019%

Changes Missing Coverage Covered Lines Changed/Added Lines %
tapcfg/server.go 0 26 0.0%
Files with Coverage Reduction New Missed Lines %
tapgarden/caretaker.go 4 68.5%
commitment/tap.go 5 83.64%
universe/interface.go 12 50.22%
Totals Coverage Status
Change from base Build 11829805032: -0.02%
Covered Lines: 25161
Relevant Lines: 61340

💛 - Coveralls

This commit adds a new universe.no-default-federation boolean flag that
allows the user to disable adding the default federation server.
@guggero guggero force-pushed the no-default-universe branch from eb54840 to 01061fd Compare November 14, 2024 17:12
Copy link
Contributor

@jharveyb jharveyb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested manually on mainnet with CLI flag --universe.no-default-federation, worked as expected.

As is it won't delete the default universe(s) if it's already been added, but if you do delete the default, and reboot with the flag set, the default will not be added to the config.

Thanks for taking care of this! 🎉

Copy link
Member

@Roasbeef Roasbeef left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 💣

@Roasbeef Roasbeef merged commit ee06af7 into main Nov 15, 2024
18 checks passed
@guggero guggero deleted the no-default-universe branch November 15, 2024 08:17
gijswijs pushed a commit that referenced this pull request Nov 20, 2024
tapcfg: add flag to disable default federation server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

[feature]: config flag to disable adding the default universes to our federation
5 participants