sweep+itest: return next retry fee rate in TxFailed event

We now return the next retry fee rate in `TxFailed` event in
`TxPublisher`. When handling the event, `UtxoSweeper` will update the
inputs to make sure the starting fee rate is set before attempting the
next sweep.
This commit is contained in:
yyforyongyu committed 2025-03-26 18:24:44 +08:00
1 parent 6dbf4ce470
commit eea3561eea
4 files changed
+82 -38

No files matched your search

+1
View File
@@ -1134,6 +1134,7 @@ func TestCreateAnPublishFail(t *testing.T) {
// Create a test feerate and return it from the mock fee function.
feerate := chainfee.SatPerKWeight(1000)
m.feeFunc.On("FeeRate").Return(feerate)
m.feeFunc.On("Increment").Return(true, nil).Once()
// Create a testing monitor record.
req := createTestBumpRequest()