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 committed 2024-04-19 21:33:37 +08:00
1 parent 563a5caed5
commit 19a599a1a9
4 files changed
+141

No files matched your search

+5
View File
@@ -51,4 +51,9 @@ type Wallet interface {
// its transaction hash.
GetTransactionDetails(txHash *chainhash.Hash) (
*lnwallet.TransactionDetail, error)
// BackEnd returns a name for the wallet's backing chain service,
// which could be e.g. btcd, bitcoind, neutrino, or another consensus
// service.
BackEnd() string
}