mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
loopd: make maximum number of payment parts configurable
This commit is contained in:
parent
5588876b48
commit
12ae3d6a40
4 changed files with 35 additions and 27 deletions
11
executor.go
11
executor.go
|
|
@ -22,6 +22,8 @@ type executorConfig struct {
|
|||
store loopdb.SwapStore
|
||||
|
||||
createExpiryTimer func(expiry time.Duration) <-chan time.Time
|
||||
|
||||
loopOutMaxParts uint32
|
||||
}
|
||||
|
||||
// executor is responsible for executing swaps.
|
||||
|
|
@ -109,10 +111,11 @@ func (s *executor) run(mainCtx context.Context,
|
|||
defer s.wg.Done()
|
||||
|
||||
newSwap.execute(mainCtx, &executeConfig{
|
||||
statusChan: statusChan,
|
||||
sweeper: s.sweeper,
|
||||
blockEpochChan: queue.ChanOut(),
|
||||
timerFactory: s.executorConfig.createExpiryTimer,
|
||||
statusChan: statusChan,
|
||||
sweeper: s.sweeper,
|
||||
blockEpochChan: queue.ChanOut(),
|
||||
timerFactory: s.executorConfig.createExpiryTimer,
|
||||
loopOutMaxParts: s.executorConfig.loopOutMaxParts,
|
||||
}, height)
|
||||
|
||||
select {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue