Skip to content
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

Very slow block download #5117

Closed
d4amenace opened this issue Mar 20, 2022 · 2 comments
Closed

Very slow block download #5117

d4amenace opened this issue Mar 20, 2022 · 2 comments

Comments

@d4amenace
Copy link

d4amenace commented Mar 20, 2022

I am running c-lightning in an lxc container and am experiencing block download delays. My instance is RPC connected to a fully updated bitcoind. The blocks are downloading horrendously slow. I am adding blocks at 3-4 per minutes and the lightning client is unavailable for more than a week.

Is there a way to use a fully validated ln node and port over it's blocks? Just curious, as setting up a lightning node shouldn't take weeks.

@cdecker
Copy link
Member

cdecker commented Mar 21, 2022

Two things here:

  • That download rate is really way too slow, usually we process 3-4 blocks per second, so that's worth investigating
  • c-lightning should not have started with much lag if this is a new wallet being created (we only scan the last couple of blocks since the wallet cannot have any funds in lower blocks since it was just created). I presume this is a new wallet?

I remember a similar issue with docker based deployments, which had issues starting subprocesses because of the way we close file descriptors before calling execve (#4872), however that was merged in c-lightning v0.10.2. What version are you running?

@d4amenace
Copy link
Author

I actually figured out what the problem was after investigating that same docker issue. I found that the problem was caused by my container duplication method. When the duplication occurred I did not remove the hidden lightning folder when spinning up a new node and caused a conflict, which caused the lightning nodes to literally download the blocks in reverse.

Once I removed this folder and restarted the node, the blocks were added instantaneously, a new key was created and everything was fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants