loop/config.go
Boris Nagaev 2225538201
multi: make payment clocks configurable
Thread lnd clocks through the client and instant out state machine. The
production default remains the wall clock while tests can inject
deterministic time.
2026-08-11 13:36:02 -05:00

25 lines
688 B
Go

package loop
import (
"time"
"github.com/lightninglabs/aperture/l402"
"github.com/lightninglabs/lndclient"
"github.com/lightninglabs/loop/assets"
"github.com/lightninglabs/loop/loopdb"
"github.com/lightningnetwork/lnd/clock"
"google.golang.org/grpc"
)
// clientConfig contains config items for the swap client.
type clientConfig struct {
LndServices *lndclient.LndServices
Server swapServerClient
Conn *grpc.ClientConn
Store loopdb.SwapStore
AssetClient *assets.TapdClient
L402Store l402.Store
CreateExpiryTimer func(expiry time.Duration) <-chan time.Time
LoopOutMaxParts uint32
Clock clock.Clock
}