Skip to content

Commit

Permalink
lnd: skip canceling rebroadcast for neutrino backend
Browse files Browse the repository at this point in the history
  • Loading branch information
yyforyongyu committed Apr 26, 2023
1 parent 4355ce6 commit 403c1ba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sweeper_wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,9 @@ func newSweeperWallet(w *lnwallet.LightningWallet) *sweeperWallet {

// CancelRebroadcast cancels the rebroadcast of the given transaction.
func (s *sweeperWallet) CancelRebroadcast(txid chainhash.Hash) {
s.Cfg.Rebroadcaster.MarkAsConfirmed(txid)
// For neutrino, we don't config the rebroadcaster for the wallet as it
// manages the rebroadcasting logic in neutrino itself.
if s.Cfg.Rebroadcaster != nil {
s.Cfg.Rebroadcaster.MarkAsConfirmed(txid)
}
}

0 comments on commit 403c1ba

Please sign in to comment.