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:
Boris Nagaev 2025-04-01 00:26:01 -03:00
parent dc7261be4a
commit e8cf6386cc
No known key found for this signature in database
6 changed files with 763 additions and 397 deletions

View file

@ -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: &notifier,
}