Hotfix in sweep flow (#94)

This commit is contained in:
Louis Singer
2024-02-09 15:24:06 +01:00
committed by GitHub
parent 2cffc2907c
commit a348f6c771

View File

@@ -186,7 +186,7 @@ func (s *sweeper) createTask(
continue
}
firstVtxo, err := s.repoManager.Vtxos().GetVtxos(ctx, sweepableVtxos[1:])
firstVtxo, err := s.repoManager.Vtxos().GetVtxos(ctx, sweepableVtxos[:1])
if err != nil {
log.Error(fmt.Errorf("error while getting vtxo: %w", err))
sweepInputs = append(sweepInputs, input) // add the input anyway in order to try to sweep it