mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 15:11:09 +02:00
Merge pull request #7637 from yyforyongyu/fix-itest-panic
Fix panic when canceling rebroadcast for neutrino backend
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user