-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug]: Unknown Unconfirmed Balance #7104
Comments
Hi @WalterSmuts! Thanks for opening the issue :) On first glance, this looks very similar to #6367, #6231, #6498, #6434 Could you perhaps grep your logs for the transaction ID? (3bc2fa79c945da5f5d457954a2235678ad3e1c1b3a3d7cbd831cff14984cab97) |
|
interesting. Is your channel with outpoint Do you recall trying to close this channel? Could you maybe also grep a few logs from above the ones you just posted for this channels outpoint (and perhaps for the channel ID) |
Nope, don't think so.
Definitely not personally. Could be peer-initiated or a force-close by lnd. Atleast that's what I think.
Not sure which channel you're referring to. |
Alright - chatted to the OP offline & we found that the associated channel has been closed but the sweep tx did not broadcast correctly it seems and that is what is showing up in LND. @WalterSmuts, you are running with a neutrino back-end correct? Would be useful to see some more logs -> my suspicion is that LND gave the tx to neutrino and then neutrino didnt broadcast it properly... Perhaps would help to turn on debug logs & restart so that the tx is given to neutrino again for broadcast |
The OP sent me some logs after turning on debug level. Can confirm that:
However, the TX is still not appearing in the mempool. Perhaps the peers are getting the tx and then rejecting it? I have asked the OP to send me the raw hex of the tx so I can try submit it so bitcoind myself to see what error is returned |
Alrighty! getting closer to the issue: Tried to submit the tx to the mempool and got:
The output from
The first tx is not a valid tx |
miiiight have to do with the fact that someone else swept the anchor output which then invalidated our own sweep of the anchor: https://blockstream.info/tx/078c3357606d7d959e9e5d3b70409971880c384886511c0b5d333b6604ea521d?input:12 |
Issue still persisting...
@Roasbeef I believe #6274 is supposed to solve this issue. Any idea why it's not working? |
I have this issue as well
Getting this error in the logs
|
using the command
seems to have collected all of the zero conf transactions into one new transaction fingers crossed |
Thanks for posting Rob, please let us know what the result is. |
Same problem, except now i have 1 zero confirmation transaction stuck and it doesn't seem to have been broadcast by nutrino either! |
well the created transaction seems to have a negative amount. that cant be right
|
I've tried broadcasting one of the raw transactions from my original message
Error is "bad-txns-inputs-missingorspent" |
Got two more stuck transactions:
|
Added explicit peers about a month ago:
This didn't fix anything but since then I haven't accrued any new unconfirmed tx's:
|
I should add my issue was solved by running btcd in rescanning mode. |
I ran
Notice new |
I seem to be having the same issue. sweeper went nuts with a bunch of txns which never go into mempool until 100% of UTXO was showing as unconfirmed. I did a rescan, now 2 remain.
When I query the transaction from
Digging deeper, I find that the first input is a lightning anchor, and has been swept already. https://mempool.space/address/bc1qrh433dns65em58nrxc3jmqz80zfjphccawn74xr60feuna8m8wvsdw2j60 It seems that this address is collecting and sweeping lots of lightning anchors. https://mempool.space/address/bc1ptztt50y5xk2pngsf8kfjd5qvek7qg485ks6nj8aq9p2k25mgqrwsy8rsar So maybe this is not detected by LND, and it's broadcasting a transaction with invalid input? I mean, these are all 330 sat utxos, but this address has collected a ton of these. What's going on? I am running LND 0.15.4-beta |
likely related to #6241 |
Ok, the node keeps trying to sweep these already spent utxos, and it's locking up my actual utxos in transactions that will never be confirmed. |
Also likley related to |
So I recently decided to see if it's related to me running lnd in neutrino mode. I've setup a
I should have around
Perhaps the unclaimed channels are the ones I still have funds in? Here's the info from the unclaimed channels:
The sum of Other info:
LMK if you need any other info. |
Thanks for the extra info @WalterSmuts 🙏 Lemme check if the sweeper-god has some insights here cc @yyforyongyu |
also want to cc @saubyk - feels like we should keep an eye on this as it didnt resolve itself & im sure by now all the timeouts have resolved |
The current state,
The unexpected behaviors are,
This might also be related to #8001 and #8786. To further investigate this issue,
|
So I got the outputs of the above commands and uploaded them. I'm also running my LND node with debug logging per default, so I just did a stop start (without |
More findings from the cli results,
So I think the
@WalterSmuts Do you recall when was the last time you saw this balance? Meanwhile, could you do the followings,
|
A couple of months before this issue was created. I'd guess around June/July 2022.
The previous logs I've uploaded should have the same. Will do this again although AFAIK the sync takes a while.
Right now (before restarting with
|
Did a quick debugging session with @Roasbeef yesterday, and think the As for the missing balance, we are still investigating, and would be helpful to have some debug logs🙏 |
Rescan finished:
Uploaded the entire log directory |
@yyforyongyu Any luck with the logs? |
@WalterSmuts too bad nope :( But I did find a reproducible failure from our recent itest PRs, will investigate! |
Background
I folks, am running LND as a router. I have unconfirmed balance and not really sure what's happening. Haven't made any channel opens or blockchain payments since way before this issue came up. So I think it must be related to lnd closing a channel.
Here's the relevant data:
The relevant transaction doesn't appear on public trackers. Any idea what happened and how to fix?
Your environment
lnd
uname -a
on *Nix)(Modified arch linux)
version of
btcd
,bitcoind
, or other backend(neutrino backend)
any other relevant environment details
Happy to grep some logs if you can give pointers. The
ERR
logs are a bit noisy. Here's the tail end:The text was updated successfully, but these errors were encountered: