Skip to content

Commit 22b504d

Browse files
committed
sweep: add TODO to the sweeper behavior.
Make sure we only trigger the sweep of a specific input when updating its fee parameters not the all the current pending registered sweeps.
1 parent 2d04813 commit 22b504d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sweep/sweeper.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,12 @@ func (s *UtxoSweeper) collector(blockEpochs <-chan *chainntnfs.BlockEpoch) {
645645

646646
// If this input is forced, we perform an sweep
647647
// immediately.
648+
//
649+
// TODO(ziggie): Make sure when `immediate` is selected
650+
// as a parameter that we only trigger the sweeping of
651+
// this specific input rather than triggering the sweeps
652+
// of all current pending inputs registered with the
653+
// sweeper.
648654
if input.params.Immediate {
649655
inputs := s.updateSweeperInputs()
650656
s.sweepPendingInputs(inputs)

0 commit comments

Comments
 (0)