-
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
LND behaving weird - Says it synced up, but isn't really synced #2309
Comments
This is using the Neutrino backend correct? |
@alexbosworth Yes, I ran it using the command Just to add, I can see the payment in Zap Desktop which I connected to the node. But whenever I try to make a channel it fails. |
If you start fresh and use Bitcoin Core as a backend do you see the same error? |
@alexbosworth Unfortunately, I'm running it on a RPi with very limited resources so it isn't an option really. I could run a pruning node, but from what I've heard it doesn't work. Is it possible for me in any way else to run lnd without a full node? |
Prune mode will work relatively OK if you're just doing it in testnet and you can set a large-ish prune value so that it won't be missing too much |
@alexbosworth Okey, I will give it a go. Forgive me, I am really new to this, but how come lnd can't fetch blocks from normal bitcoin nodes? Since all it seems to be doing is downloading blocks and checking for transaction, isn't that exactly what normal bitcoin nodes do? |
Neutrino mode is fetching blocks from normal nodes, however it also needs special index files that are only provided by Neutrino-capable nodes. There's another useful function provided by Bitcoin Core though which is that it fully validates the Blockchain |
Seems to be working as expected (testnet is massive 3x the size of mainnet, and has even older channels that mainnet). |
@Roasbeef But how does this explain the behaviour? Does my node check that all other payment channels funding transactions are valid? |
@Falsen Yes. |
Hi
It seems as this process hinders me to open new channels. From my point of view lnd is synced because it shows my balance which I got in Block 1,454,092 (and log says 1,292,627 so far). What is lnd doing exactly? Is it still downloading the block filters? |
LND is validating the channel graph, meaning it is checking whether channels are still open. This is being actively worked on to speed up :) |
I have this issue, the problem is my node keeps doing this and whilst it is doing it the node is somewhat unresponsive to channel openings etc |
Background
So I installed lnd on my Raspberry Pi, and ran it. After a while it said that the chain is up to date.
getinfo
says that the node is synced to chain and the block height is the most recent.However for some reason the lnd node is spamming information about it getting past blocks.
Why does it do this? Fetching blocks that are waaay old.
pi@raspberrypi:~/lnd $ lncli --network=testnet walletbalance
{
"total_balance": "12992363",
"confirmed_balance": "0",
"unconfirmed_balance": "12992363"
}
My balance is not yet confirmed, but the payment has at the time of writing 130 confirmations.
https://testnet.smartbit.com.au/tx/14b4e0bc81d350f8085676e2a4ccebdf6f201d68370eda47b2116f53c8b94666
I am very confused, is it doing some prescan and later a more thorough scan?
When I try to create a channel from Zap Desktop client I get the following message:
Maybe I am doing something wrong, please tell me!
Your environment
version of
lnd
0.5.1-beta commit=v0.5.1-beta-138-g5451211d1947de5b2376aff5eb39c6e9f969cbbb
which operating system (
uname -a
on *Nix)Linux raspberrypi 4.14.34-v7+ Commitment transaction fee calcualtion #1110 SMP Mon Apr 16 15:18:51 BST 2018 armv7l GNU/Linux
version of
btcd
,bitcoind
, or other backendRunning neutrino and connected to 'faucet.lightning.community'
any other relevant environment details
Running on testnet
Steps to reproduce
Not sure, I just ran it
Expected behaviour
As it says the chain is synced, the payment should be confirmed a long time ago
Actual behaviour
The chain is not synced.
The text was updated successfully, but these errors were encountered: