lnd: [bug]: Invalid small transaction causing on-chain funds to be stuck in Pending state
Background
I am currently running a Lightning Network node using the Voltage service. Due to an invalid transaction of 147 sats, most of my on-chain funds are stuck in Pending state.
A brief history of the issue:
- In the past, the channel opening transaction fee was set too low, resulting in the channel not opening properly. I then force-closed the channel.
- I reported this issue previously: [bug]: Channel Issue After Resolving Pending Opening Transaction with CPFP (edge not found)
- The funds tied to the force-closed channel returned to my on-chain wallet.
- closing_tx_hash: 72886b507bc08da367b2b4a9690654b99e97420a596677e378fc449d69ef8707
- I thought everything was going smoothly until an invalid transaction of 147 sats propagated and caused the on-chain funds to be stuck in Pending state.
- To my knowledge, this transaction started to occur after upgrading the node to version 0.16.x.
- The invalid transaction’s txid is e7ace4fae0e4b732135d358a638aea1f738d8bd86d5fec07068a6d40dc4606b6, but it cannot be verified in the mempool as it is invalid.
- The reason for considering the transaction invalid is that the output address is different from the one where I received the funds after closing the channel.
- 147 sats output address: bc1plwgx7mmttulrnud6ne0efvl5st22ey3p33kxvpvgqf3lj40fnu0qc3gwa6
- Address where I received the funds after closing the channel: bc1ptfrkmhksynem3fmp74e9mp0vwv7ezkz6c4nv0d6duhyjx3x48wrsmm35gk
- With the help of a Voltage engineer, I performed wallet rescans three times, but the issue persists.
- it seems that the problematic transaction was propagated during the rescan.
Your environment
- version of
lnd
: 0.16.2-beta (exact version unknown) - operating system: N/A (hosted by Voltage)
- backend: unknown (managed by Voltage)
- any other relevant environment details: N/A
Steps to reproduce
- Run a Lightning Network node using the Voltage service.
- Upgrade the node to version 0.16.x.
- Encounter an invalid transaction of 147 sats that causes on-chain funds to be stuck in Pending state.
- Perform wallet rescans with the help of a Voltage engineer, but the issue persists.
Expected behaviour
The invalid transaction of 147 sats should not affect the on-chain funds, and they should not be stuck in Pending state.
Actual behaviour
The invalid transaction of 147 sats is causing the majority of my on-chain funds to be stuck in Pending state, and the issue persists even after performing wallet rescans.
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 1
- Comments: 15 (1 by maintainers)
@sogoagain, can you check if your issue is the same as in https://github.com/lightningnetwork/lnd/issues/7708?
Not sure what happened but
lncli listunspent
suddenly shows that the original input is now spendable and no longer pending, so I guess it resolved itself.This sweep tries to co-spend from a force close transaction’s outputs
anchor_to_local
andto_local
, where the anchor was already swept by https://mempool.space/tx/60a74dd825094a29a5db68cd4e1dcbf7f031d300c9a7b8d1c954908aaef62be7#vin=4.This was meant to be fixed by https://github.com/lightningnetwork/lnd/pull/7599.
Hi @sogoagain, I have a couple of questions:
Related to: https://github.com/lightningnetwork/lnd/issues/4760
dup?