Skip to content

Commit

Permalink
clightning: add LWK configuration options
Browse files Browse the repository at this point in the history
add LWK configuration options to PeerswapClightningConfig.
Add new fields to support LWK configuration, including signer name,
wallet name, endpoint, Electrum endpoint, network, and liquid swaps.

This config is just used for a console print.
  • Loading branch information
YusukeShimizu committed Jun 6, 2024
1 parent f2ee818 commit 54f0096
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions clightning/clightning.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,12 @@ func (cl *ClightningClient) SetPeerswapConfig(config *Config) {
LiquidRpcPort: config.Liquid.RpcPort,
LiquidRpcWallet: config.Liquid.RpcWallet,
LiquidDisabled: *config.Liquid.LiquidSwaps,
LWKSignerName: config.LWK.GetSignerName(),
LWKWalletName: config.LWK.GetWalletName(),
LWKEndpoint: config.LWK.GetLWKEndpoint(),
ElectrumEndpoint: config.LWK.GetElectrumEndpoint(),
LWKNetwork: config.LWK.GetNetwork(),
LWKLiquidSwaps: config.LWK.GetLiquidSwaps(),
PeerswapDir: config.PeerswapDir,
}
}
Expand Down
7 changes: 7 additions & 0 deletions clightning/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ type PeerswapClightningConfig struct {
LiquidRpcWallet string `json:"liquid.rpcwallet"`
LiquidDisabled bool `json:"liquid.disabled"`

LWKSignerName string `json:"lwksignername"`
LWKWalletName string `json:"lwkwalletname"`
LWKEndpoint string `json:"lwkendpoint"`
ElectrumEndpoint string `json:"electrumendpoint"`
LWKNetwork string `json:"lwknetwork"`
LWKLiquidSwaps bool `json:"lwkliquidswaps"`

PeerswapDir string `json:"peerswap-dir"`
}

Expand Down

0 comments on commit 54f0096

Please sign in to comment.