Skip to content

Commit

Permalink
Adding new parameter in the config inside the plugin module
Browse files Browse the repository at this point in the history
Signed-off-by: Vincenzo Palazzo <[email protected]>
  • Loading branch information
vincenzopalazzo committed Oct 27, 2021
1 parent 927c0b8 commit 326cb80
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions glightning/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -1059,12 +1059,21 @@ func (gm GetManifestMethod) Call() (jrpc2.Result, error) {
return m, nil
}

type ProxyConf struct {
Type string `json:"type"`
Address string `json:"address"`
port uint64 `json:"port"`
}

type Config struct {
LightningDir string `json:"lightning-dir"`
RpcFile string `json:"rpc-file"`
Startup bool `json:"startup,omitempty"`
Network string `json:"network,omitempty"`
Features *FeatureBits `json:"feature_set,omitempty"`
Proxy *proxyConf `json:"proxy,omitempty"`
TorV3Enabled bool `json:"torv3-enabled,omitempty"`
AlwaysProxy bool `json:"always_use_proxy,omitempty"`
}

type InitMethod struct {
Expand Down

0 comments on commit 326cb80

Please sign in to comment.