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:
1 file changed
+6
@@ -645,6 +645,12 @@ func (s *UtxoSweeper) collector(blockEpochs <-chan *chainntnfs.BlockEpoch) {
|
|||||||
|
|
||||||
// If this input is forced, we perform an sweep
|
// If this input is forced, we perform an sweep
|
||||||
// immediately.
|
// 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 {
|
if input.params.Immediate {
|
||||||
inputs := s.updateSweeperInputs()
|
inputs := s.updateSweeperInputs()
|
||||||
s.sweepPendingInputs(inputs)
|
s.sweepPendingInputs(inputs)
|
||||||
|
|||||||
Reference in new issue
Block a user