swap: add constructor for swap config

This commit is contained in:
carla 2020-06-08 12:53:07 +02:00
parent 9571371153
commit 2ebbc78131
No known key found for this signature in database
GPG key ID: 4CA7FE54A6213C91
4 changed files with 22 additions and 41 deletions

10
swap.go
View file

@ -82,3 +82,13 @@ type swapConfig struct {
store loopdb.SwapStore
server swapServerClient
}
func newSwapConfig(lnd *lndclient.LndServices, store loopdb.SwapStore,
server swapServerClient) *swapConfig {
return &swapConfig{
lnd: lnd,
store: store,
server: server,
}
}