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

@@ -143,6 +143,10 @@ type BumpRequest struct {
// ExtraTxOut tracks if this bump request has an optional set of extra
// outputs to add to the transaction.
ExtraTxOut fn.Option[SweepOutput]
// Immediate is used to specify that the tx should be broadcast
// immediately.
Immediate bool
}
// MaxFeeRateAllowed returns the maximum fee rate allowed for the given