Skip to content

Commit

Permalink
services: extract DefaultBuildTags
Browse files Browse the repository at this point in the history
  • Loading branch information
guggero committed Nov 16, 2020
1 parent 41d8ca6 commit 387423d
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions lnd_services.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,10 @@ var (
// tags can be adjusted accordingly. This default will be used as a fall
// back version if none is specified in the configuration.
minimalCompatibleVersion = &verrpc.Version{
AppMajor: 0,
AppMinor: 11,
AppPatch: 0,
BuildTags: []string{
"signrpc", "walletrpc", "chainrpc", "invoicesrpc",
},
AppMajor: 0,
AppMinor: 11,
AppPatch: 0,
BuildTags: DefaultBuildTags,
}

// ErrVersionCheckNotImplemented is the error that is returned if the
Expand All @@ -54,6 +52,12 @@ var (
// connected lnd instance does not have all built tags activated that
// are required.
ErrBuildTagsMissing = errors.New("build tags missing")

// DefaultBuildTags is the list of all subserver build tags that are
// required for lndclient to work.
DefaultBuildTags = []string{
"signrpc", "walletrpc", "chainrpc", "invoicesrpc",
}
)

// LndServicesConfig holds all configuration settings that are needed to connect
Expand Down

0 comments on commit 387423d

Please sign in to comment.