lnd: skip canceling rebroadcast for neutrino backend

This commit is contained in:
yyforyongyu 2023-04-26 10:38:13 +08:00
parent 4355ce62d2
commit 403c1baca6
No known key found for this signature in database
GPG Key ID: 9BCD95C4FF296868

View File

@ -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) {
// 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)
}
}