sweep: add new interface method Immediate

This prepares the following commit where we now let the fee bumpr
decides whether to broadcast immediately or not.
This commit is contained in:
yyforyongyu
2024-10-25 15:32:30 +08:00
parent 5f64280df4
commit d0c7fd8aac
5 changed files with 36 additions and 0 deletions

View File

@@ -827,6 +827,7 @@ func (s *UtxoSweeper) sweep(set InputSet) error {
DeliveryAddress: sweepAddr,
MaxFeeRate: s.cfg.MaxFeeRate.FeePerKWeight(),
StartingFeeRate: set.StartingFeeRate(),
Immediate: set.Immediate(),
// TODO(yy): pass the strategy here.
}