mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-03 09:19:10 +01:00
lnd: skip canceling rebroadcast for neutrino backend
This commit is contained in:
parent
4355ce62d2
commit
403c1baca6
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue