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

multi: add tower config defaults #7771

Merged
merged 4 commits into from
Jun 16, 2023

Conversation

ellemouton
Copy link
Collaborator

@ellemouton ellemouton commented Jun 15, 2023

Add DefaultWtclientCfg and DefaultWatchtowerConfig functions that populate
defaults for the lncfg.Wtclient and lncfg.Watchtower config structs. These are
then used in the main LND config struct so that the defaults are shown to a user in
the lnd --help command.

This PR also removes the deprecated PrivateTowerURIs member from the Wtclient
config struct since it has been deprecated since v0.8.0-beta and currently LND would
fail to start if a user specified it.

Fixes #7769

Copy link
Collaborator

@guggero guggero left a comment

Choose a reason for hiding this comment

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

Very nice, LGTM 🎉

server.go Show resolved Hide resolved
docs/release-notes/release-notes-0.17.0.md Show resolved Hide resolved
In this commit, a `DefaultWtClientCfg` function is added which
populates some default values for the `WtClient` struct. This is then
used to populate the wtclient defaults in the main LND config struct.
@ellemouton ellemouton force-pushed the towerConfigDefaults branch 2 times, most recently from 8195b0f to d3d7657 Compare June 15, 2023 09:35
In this commit, a `DefaultWatchtowerCfg` function is added which is used
to construct a default `lncfg.Watchtower` struct. This is then used to
populate the default watchtower config in the main LND config struct.
This commit removes the `PrivateTowerURIs` member from the `WtClient`
config struct. This field has been deprecated since v0.8.0-beta and
currently, LND would fail to start if the field was specified.
Copy link
Collaborator

@guggero guggero left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

@saubyk
Copy link
Collaborator

saubyk commented Jun 15, 2023

Concept Ack

@saubyk saubyk added this to the v0.17.0 milestone Jun 15, 2023
@saubyk saubyk requested a review from yyforyongyu June 15, 2023 15:27
Copy link
Collaborator

@yyforyongyu yyforyongyu left a comment

Choose a reason for hiding this comment

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

LGTM🏖

@guggero guggero merged commit 2e1b659 into lightningnetwork:master Jun 16, 2023
@ellemouton ellemouton deleted the towerConfigDefaults branch June 16, 2023 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config Parameters/arguments/config file related issues/PRs watchtower
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug]: Default values of watchtower and wtclient are not displayed in lnd --help
4 participants