|
|
@ -19,13 +19,14 @@ func getClient(config *config, lnd *lndclient.LndServices) (*loop.Client,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
clientConfig := &loop.ClientConfig{
|
|
|
|
clientConfig := &loop.ClientConfig{
|
|
|
|
ServerAddress: config.SwapServer,
|
|
|
|
ServerAddress: config.SwapServer,
|
|
|
|
ProxyAddress: config.Proxy,
|
|
|
|
ProxyAddress: config.Proxy,
|
|
|
|
Insecure: config.Insecure,
|
|
|
|
Insecure: config.Insecure,
|
|
|
|
TLSPathServer: config.TLSPathSwapSrv,
|
|
|
|
TLSPathServer: config.TLSPathSwapSrv,
|
|
|
|
Lnd: lnd,
|
|
|
|
Lnd: lnd,
|
|
|
|
MaxLsatCost: btcutil.Amount(config.MaxLSATCost),
|
|
|
|
MaxLsatCost: btcutil.Amount(config.MaxLSATCost),
|
|
|
|
MaxLsatFee: btcutil.Amount(config.MaxLSATFee),
|
|
|
|
MaxLsatFee: btcutil.Amount(config.MaxLSATFee),
|
|
|
|
|
|
|
|
LoopOutMaxParts: config.LoopOutMaxParts,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
swapClient, cleanUp, err := loop.NewClient(storeDir, clientConfig)
|
|
|
|
swapClient, cleanUp, err := loop.NewClient(storeDir, clientConfig)
|
|
|
|