From 22b504db7c4a4d5e8e0a06e4055ad69fb6809fa1 Mon Sep 17 00:00:00 2001 From: ziggie Date: Tue, 30 Jul 2024 22:28:43 +0200 Subject: [PATCH] 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. --- sweep/sweeper.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sweep/sweeper.go b/sweep/sweeper.go index af2f0cec9..ff32d9489 100644 --- a/sweep/sweeper.go +++ b/sweep/sweeper.go @@ -645,6 +645,12 @@ func (s *UtxoSweeper) collector(blockEpochs <-chan *chainntnfs.BlockEpoch) { // If this input is forced, we perform an sweep // immediately. + // + // TODO(ziggie): Make sure when `immediate` is selected + // as a parameter that we only trigger the sweeping of + // this specific input rather than triggering the sweeps + // of all current pending inputs registered with the + // sweeper. if input.params.Immediate { inputs := s.updateSweeperInputs() s.sweepPendingInputs(inputs)