mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
sweepbatcher: allow adding groups of inputs
A group of inputs can be added by passing it in SweepRequest.Inputs field. All the inputs belong to the same swap and are added to the same batch.
This commit is contained in:
parent
dc7261be4a
commit
e8cf6386cc
6 changed files with 763 additions and 397 deletions
|
|
@ -1159,8 +1159,12 @@ func (s *loopOutSwap) waitForHtlcSpendConfirmedV2(globalCtx context.Context,
|
|||
|
||||
sweepReq := sweepbatcher.SweepRequest{
|
||||
SwapHash: s.hash,
|
||||
Outpoint: htlcOutpoint,
|
||||
Value: htlcValue,
|
||||
Inputs: []sweepbatcher.Input{
|
||||
{
|
||||
Outpoint: htlcOutpoint,
|
||||
Value: htlcValue,
|
||||
},
|
||||
},
|
||||
Notifier: ¬ifier,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue