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.
This commit is contained in:
ziggie committed 2024-08-09 19:41:27 +02:00
1 parent 2d04813dc3
commit 22b504db7c
1 file changed
+6
+6
View File
@@ -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)