Background
As a follow up to this #7599 (comment)
The last sweep tx is persisted and always rebraodcated on startup. In case this tx double spends another tx it causes the user balance to stay in unconfirmed state.
Your environment
- LND v15.3
- mobile android/iOS using neutrino
Steps to reproduce
We have seen this in support cases on closed channels.
Expected behaviour
We expect the double spent transaction to be removed and not constitently being rebroadcasted.
Actual behaviour
Sweep tx always rebroadcasted.
In general since Btcwallet has a mechnism to rebroadcast unmined transactions so do you see any reason to persist the last sweep tx and republish it at startup by the sweeper? https://github.com/lightningnetwork/lnd/blob/master/sweep/sweeper.go#L344
Background
As a follow up to this #7599 (comment)
The last sweep tx is persisted and always rebraodcated on startup. In case this tx double spends another tx it causes the user balance to stay in unconfirmed state.
Your environment
Steps to reproduce
We have seen this in support cases on closed channels.
Expected behaviour
We expect the double spent transaction to be removed and not constitently being rebroadcasted.
Actual behaviour
Sweep tx always rebroadcasted.
In general since Btcwallet has a mechnism to rebroadcast unmined transactions so do you see any reason to persist the last sweep tx and republish it at startup by the sweeper? https://github.com/lightningnetwork/lnd/blob/master/sweep/sweeper.go#L344