Open
Description
Studied a little bit the code around the LinearFeeFunction
and found the following edge case. If the conf_target
is greather equal than 1008 we return the min relay fee. This is not capped by the budget (endrate) of the fee function. E.g. if you have a min relay fee rate of 100 sat/vb an ad max fee rate given by the budget of 50 sat/vb NewLinearFeeFunction
will return a fee function with a startingFeeRate
of 100 sat/vb and an endingFeeRate
of 50 sat/vb. Imho this will lead to a broadcasted sweep tx with 100 sat/vb.
Lines 294 to 299 in e8c5e7d