-
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
Confed onchain tx showing not confed in listchaintxns
#6487
Comments
I have been led to believe this might be due to who opened the channel; no certainty, but I'll surely keep track of it for new channels... yet the last two opens that I initiated in batch, and at least another open I initiated as my very first channel, have had this issue, while a balanced open I just received from the peer was correctly recorded as confirmed |
I also checked the
Normally I would argue that at least the chainfees need to be accounted for like 380 sats. |
A total fee of zero is shown when the wallet doesn't know about any of the inputs (so it can't compute the fee used). So that's expected behavior (it isn't tracking the complete UTXO set, only the inputs it knows about). |
Do you have logs at the time or channel open or start up logs? |
Alas, I wouldn't be able to produce them, I'm sorry |
In my case they were sweeps, after a channel-force-close, so LND selected inputs by itself, which means they knew about the inputs. But will look into the logging more thoroughly |
I'm fairly certain the missing txn's has to do with psbt channel funding |
I'm pretty sure the issue is that during the normal, internal funding flow, you're either:
In the externally funded case, neither of these things are happening (unless you construct a funding tx that pays to an address lnd knows about) so It seems like the fix here would be calling |
Background
All my channel opens are done from external wallet; most of those txns are not detected by lnd as confirmed, as reported by
lncli listchaintxns
. If I restart lnd, those transactions will disappear from lnd's history.This doesn't appear to have happened for some channels, but recent opens look like they are all affected by this issue. I've been on 14.2 since the start of my adventure.
BTW, no fees are reported as well, should be possible to know them even if tx wasn't from lnd wallet, but I can fill that in manually on my accounting so it's much less of a pressing issue.
Your environment
lnd
0.14.2uname -a
on *Nix) latest raspios 64bitbtcd
,bitcoind
, or other backend 22Steps to reproduce
Open channel from external wallet, check
lncli listchaintxns
, observe how probably the txn is reported as having 0 confirmations even if it confed.Expected behaviour
lnd correctly picks up the tx confirmations; ideally it also derives the fee
Actual behaviour
tx is reported as unconfirmed forever, and at lnd restart it disappears completely from the DB
The text was updated successfully, but these errors were encountered: