sweep: catch third party spent in fee bumper for neutrino

This commit adds a new check for neutrino backend - when the inputs in
the sweeping tx are spent by a third party, we will send back a
`TxFailed` event to free the rest of the inputs for re-grouping.
This commit is contained in:
yyforyongyu
2024-04-13 01:11:54 +08:00
parent 563a5caed5
commit 19a599a1a9
4 changed files with 141 additions and 0 deletions

View File

@@ -1358,6 +1358,7 @@ func TestProcessRecords(t *testing.T) {
NumConfirmations: 0,
}, nil,
).Once()
m.wallet.On("BackEnd").Return("test-backend").Once()
// Setup the initial publisher state by adding the records to the maps.
subscriberConfirmed := make(chan *BumpResult, 1)