lnd: UTXO Transaction not found
Background
After the Telegram lightning watch bot went down a few days ago the channel to it was force closed but the funds in the channel have not reappeared for me. There is a transaction listed but it is not found in mempool.space. There is another transaction with approx the right amount, but the money isn’t found anywhere, it has gone to another address I can’t see I think; not very clear on this last point.
This node hasn’t been touched in several months, apart from upgrading lnd and restarting, as it is my test setup for “I’ll get around to learning more about this when I have time” which of course never happens.
When I first started to troubleshoot this there were 3 utxos in this strange 0-confirmations state so I took the advice to use --reset-wallet-transactions and after an hour the situation improved and now has only one like this. I ran it again to see if it would clear up any more but has not changed again.
Your environment
- lnd version 0.14.2-beta commit=v0.14.2-beta
- Windows 10
- Neutrino
- tor and a dynamic ip that is also advertised
The problem
Two-fold issue from my perspective
- A) have sats marked as “unconfirmed” which will presumably never get confirmed as the transaction is not in the pool
- B) I don’t appear to have got the sats back from the force closed channel, unless they are the ones in A) which is roughly the right amount
Transaction with no confirmations
Is this normal? lnd can see this utxo but the transaction doesn’t exist and hence no balance in the address.
{
"utxos": [
{
"address_type": 0,
"address": "bc1qv6wy20d7ceh4c4yus5hsmz0zjj5kld8sry03wp",
"amount_sat": 15455,
"pk_script": "0014669c453dbec66f5c549c852f0d89e294a96fb4f0",
"outpoint": "2dc37123f8c662d3e36754915d0ad430b6f75b288271112b104f0eee9164356b:0",
"confirmations": 0
},
Transaction with funds gone somewhere I can’t see
Separately, in RTL there is a listing for the force closed transaction. I don’t know how to see this via the lncli.
In that listing it shows the closing transaction as being 10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409
It shows the sats moving to an address, and then some time later moving to another one. I can’t see this as an available balance unless it is the unconfirmed amount described above, though the amount doesn’t quite match.
Expected behaviour
I would expect the funds from the force closed to become available to me.
Actual behaviour
It didn’t
Log grep for the transaction id s
2022-03-22 09:14:52.975 [INF] SWPR: Creating sweep transaction 2dc37123f8c662d3e36754915d0ad430b6f75b288271112b104f0eee9164356b for 2 inputs (10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409:0 (CommitmentAnchor), 4641f2a7a9d18af733f58ce3ffa0f65dc5f5f91510fc27fe4c4468083aca1a1f:0 (WitnessKeyHash)) using 253 sat/kw, tx_weight=719, tx_fee=0.00000181 BTC, parents_count=0, parents_fee=0 BTC, parents_weight=0
2022-03-22 09:14:52.977 [INF] LNWL: Inserting unconfirmed transaction 2dc37123f8c662d3e36754915d0ad430b6f75b288271112b104f0eee9164356b
2022-03-24 17:06:03.465 [INF] LNWL: Inserting unconfirmed transaction 2dc37123f8c662d3e36754915d0ad430b6f75b288271112b104f0eee9164356b
2022-03-25 09:22:44.142 [INF] LNWL: Inserting unconfirmed transaction 2dc37123f8c662d3e36754915d0ad430b6f75b288271112b104f0eee9164356b
2022-03-20 23:27:44.217 [INF] CNCT: Broadcasting force close transaction 10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409, ChannelPoint(d372ac0e2dedeaba29eaf98e5c85070b1d91c7dda8cbc6a8afe31c41d941b8e4:0): (*wire.MsgTx)(0xc003066f80)({
2022-03-20 23:27:44.246 [INF] LNWL: Inserting unconfirmed transaction 10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409
2022-03-20 23:27:49.288 [INF] SWPR: Sweep request received: out_point=10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409:0, witness_type=CommitmentAnchor, relative_time_lock=0, absolute_time_lock=0, amount=0.0000033 BTC, params=(fee=144 blocks, force=true, exclusive_group=0xc0095bb2d8)
2022-03-20 23:27:49.297 [INF] NTFN: New spend subscription: spend_id=4, outpoint=10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409:0, script=0 9bb1f7dc80edd81e1c3163f35e03366829d18e4dcc2ad5398006209bc5739bbb, height_hint=728217
2022-03-20 23:27:49.298 [INF] NTFN: Dispatching historical spend rescan for outpoint=10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409:0, script=0 9bb1f7dc80edd81e1c3163f35e03366829d18e4dcc2ad5398006209bc5739bbb, start=728217, end=728217
2022-03-20 23:27:49.301 [INF] PEER: channel(695837:1425:0) force closed with txid 10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409
2022-03-21 09:08:13.153 [INF] CNCT: Re-publishing force close tx(10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409) for channel d372ac0e2dedeaba29eaf98e5c85070b1d91c7dda8cbc6a8afe31c41d941b8e4:0
2022-03-21 09:08:22.786 [INF] SWPR: Sweep request received: out_point=10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409:0, witness_type=CommitmentAnchor, relative_time_lock=0, absolute_time_lock=0, amount=0.0000033 BTC, params=(fee=144 blocks, force=true, exclusive_group=0xc005e04a28)
2022-03-21 09:08:22.787 [INF] NTFN: New spend subscription: spend_id=4, outpoint=10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409:0, script=0 9bb1f7dc80edd81e1c3163f35e03366829d18e4dcc2ad5398006209bc5739bbb, height_hint=728287
2022-03-21 09:08:22.787 [INF] NTFN: Dispatching historical spend rescan for outpoint=10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409:0, script=0 9bb1f7dc80edd81e1c3163f35e03366829d18e4dcc2ad5398006209bc5739bbb, start=728287, end=728287
2022-03-21 09:08:42.793 [INF] NTFN: Dispatching confirmed spend notification for outpoint=d372ac0e2dedeaba29eaf98e5c85070b1d91c7dda8cbc6a8afe31c41d941b8e4:0, script=0 06eaa3013d18c073be0b757601e3ef5fe76ac96eecb3115406898e81c58c9133 at current height=728287: 10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409[0] spending d372ac0e2dedeaba29eaf98e5c85070b1d91c7dda8cbc6a8afe31c41d941b8e4:0 at height=728218
2022-03-21 09:08:42.865 [INF] SWPR: Sweep request received: out_point=10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409:0, witness_type=CommitmentAnchor, relative_time_lock=0, absolute_time_lock=0, amount=0.0000033 BTC, params=(fee=253 sat/kw, force=false, exclusive_group=<nil>)
2022-03-21 09:08:42.865 [INF] NTFN: New confirmation subscription: conf_id=1, txid=10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409, num_confs=1 height_hint=728218
2022-03-21 09:08:42.925 [INF] NTFN: Dispatching 1 confirmation notification for txid=10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409
2022-03-21 09:08:42.925 [INF] NTFN: Canceling confirmation notification: conf_id=1, txid=10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409
2022-03-21 09:25:00.947 [INF] SWPR: Creating sweep transaction 67e54fa4edb155a8bf6ff2466d269b4cac774b1ebcd4151e44d03b1a1a8c96ef for 2 inputs (10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409:0 (CommitmentAnchor), 9a9c84d17a76d3384986305b1398c9576aef79649f4440456d60b3cd9700487b:0 (WitnessKeyHash)) using 253 sat/kw, tx_weight=719, tx_fee=0.00000181 BTC, parents_count=0, parents_fee=0 BTC, parents_weight=0
2022-03-21 09:54:57.143 [INF] SWPR: Creating sweep transaction c3f8f5d20025be7d821b0411344de818c9ace57d45953c8979bcc183bc73afbb for 2 inputs (10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409:0 (CommitmentAnchor), 0d30b482795bbe5d249c3b6517f1f8ccdbd604ebcff176aae5f4353bafed6f01:0 (WitnessKeyHash)) using 253 sat/kw, tx_weight=719, tx_fee=0.00000181 BTC, parents_count=0, parents_fee=0 BTC, parents_weight=0
2022-03-21 17:44:46.441 [INF] SWPR: Sweep request received: out_point=10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409:0, witness_type=CommitmentAnchor, relative_time_lock=0, absolute_time_lock=0, amount=0.0000033 BTC, params=(fee=253 sat/kw, force=false, exclusive_group=<nil>)
2022-03-21 17:44:46.441 [INF] NTFN: New confirmation subscription: conf_id=1, txid=10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409, num_confs=1 height_hint=728218
2022-03-21 17:44:46.441 [INF] NTFN: New spend subscription: spend_id=3, outpoint=10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409:0, script=0 9bb1f7dc80edd81e1c3163f35e03366829d18e4dcc2ad5398006209bc5739bbb, height_hint=728336
2022-03-21 17:44:46.442 [INF] NTFN: Dispatching historical spend rescan for outpoint=10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409:0, script=0 9bb1f7dc80edd81e1c3163f35e03366829d18e4dcc2ad5398006209bc5739bbb, start=728336, end=728336
2022-03-22 07:28:37.967 [WRN] BTCN: All peers rejected transaction 10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409 checking errors
2022-03-22 09:08:30.595 [INF] SWPR: Sweep request received: out_point=10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409:0, witness_type=CommitmentAnchor, relative_time_lock=0, absolute_time_lock=0, amount=0.0000033 BTC, params=(fee=253 sat/kw, force=false, exclusive_group=<nil>)
2022-03-22 09:08:30.594 [INF] NTFN: New confirmation subscription: conf_id=1, txid=10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409, num_confs=1 height_hint=728218
2022-03-22 09:08:30.595 [INF] NTFN: New spend subscription: spend_id=3, outpoint=10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409:0, script=0 9bb1f7dc80edd81e1c3163f35e03366829d18e4dcc2ad5398006209bc5739bbb, height_hint=728433
2022-03-22 09:08:30.596 [INF] NTFN: Dispatching historical spend rescan for outpoint=10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409:0, script=0 9bb1f7dc80edd81e1c3163f35e03366829d18e4dcc2ad5398006209bc5739bbb, start=728433, end=728436
2022-03-22 09:08:49.819 [INF] NTFN: Dispatching 1 confirmation notification for txid=10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409
2022-03-22 09:08:49.819 [INF] NTFN: Canceling confirmation notification: conf_id=1, txid=10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409
2022-03-22 09:08:49.821 [INF] SWPR: Sweep request received: out_point=10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409:3, witness_type=CommitmentTimeLock, relative_time_lock=144, absolute_time_lock=0, amount=0.00015792 BTC, params=(fee=6 blocks, force=false, exclusive_group=<nil>)
2022-03-22 09:08:49.821 [INF] NTFN: New spend subscription: spend_id=4, outpoint=10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409:3, script=0 670589f9338a09fe0a0d560e97bce5aeb9b174a326a517a2f54211e27a95d20b, height_hint=728218
2022-03-22 09:08:49.821 [INF] NTFN: Dispatching historical spend rescan for outpoint=10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409:3, script=0 670589f9338a09fe0a0d560e97bce5aeb9b174a326a517a2f54211e27a95d20b, start=728218, end=728436
2022-03-22 09:09:19.844 [INF] SWPR: Creating sweep transaction 4641f2a7a9d18af733f58ce3ffa0f65dc5f5f91510fc27fe4c4468083aca1a1f for 1 inputs (10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409:3 (CommitmentTimeLock)) using 1002 sat/kw, tx_weight=486, tx_fee=0.00000486 BTC, parents_count=0, parents_fee=0 BTC, parents_weight=0
2022-03-22 09:14:22.966 [INF] NTFN: Dispatching confirmed spend notification for outpoint=10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409:3, script=0 670589f9338a09fe0a0d560e97bce5aeb9b174a326a517a2f54211e27a95d20b at current height=728437: 4641f2a7a9d18af733f58ce3ffa0f65dc5f5f91510fc27fe4c4468083aca1a1f[0] spending 10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409:3 at height=728437
2022-03-22 09:14:22.967 [INF] NTFN: Canceling spend notification: spend_id=4, outpoint=10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409:3, script=0 670589f9338a09fe0a0d560e97bce5aeb9b174a326a517a2f54211e27a95d20b
2022-03-22 09:14:52.975 [INF] SWPR: Creating sweep transaction 2dc37123f8c662d3e36754915d0ad430b6f75b288271112b104f0eee9164356b for 2 inputs (10034c258395cb0211ec0edd066d11cb1b5a0cec0aaa0890f947959b88f0b409:0 (CommitmentAnchor), 4641f2a7a9d18af733f58ce3ffa0f65dc5f5f91510fc27fe4c4468083aca1a1f:0 (WitnessKeyHash)) using 253 sat/kw, tx_weight=719, tx_fee=0.00000181 BTC, parents_count=0, parents_fee=0 BTC, parents_weight=0
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 24
Hmm, this seems to be happening to other users as well.
Since you upgraded to 0.15 already and that didn’t fix it, we need more information to dig deeper. Could you please set
--debuglevel=debugand--reset-wallet-transactionson your node (again) and send us the full log since that restart? You can DM me the logs on Slack or send me an email (in my profile). Also the full output oflncli listunspentandlncli listchaintxnswould be very useful. Thanks!