mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-26 21:51:27 +02:00
sweep: allow specifying starting fee rate for fee func
This commit is contained in:
@@ -114,6 +114,10 @@ type BumpRequest struct {
|
||||
|
||||
// MaxFeeRate is the maximum fee rate that can be used for fee bumping.
|
||||
MaxFeeRate chainfee.SatPerKWeight
|
||||
|
||||
// StartingFeeRate is an optional parameter that can be used to specify
|
||||
// the initial fee rate to use for the fee function.
|
||||
StartingFeeRate fn.Option[chainfee.SatPerKWeight]
|
||||
}
|
||||
|
||||
// MaxFeeRateAllowed returns the maximum fee rate allowed for the given
|
||||
@@ -380,6 +384,7 @@ func (t *TxPublisher) initializeFeeFunction(
|
||||
// TODO(yy): return based on differet req.Strategy?
|
||||
return NewLinearFeeFunction(
|
||||
maxFeeRateAllowed, confTarget, t.cfg.Estimator,
|
||||
req.StartingFeeRate,
|
||||
)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user