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

Initial node sync failing? #93

Closed
Mandelhoff opened this issue Feb 5, 2018 · 4 comments
Closed

Initial node sync failing? #93

Mandelhoff opened this issue Feb 5, 2018 · 4 comments

Comments

@Mandelhoff
Copy link
Contributor

I got a fresh clone about 10 minutes ago. I did the start:sync() and it sync'd for a while. It seems to stall out.

I can run api:height(). and it tells me 2254 which is the height that your Explorer web page shows, but I keep getting timeouts and getblock errors like the screenshot.

The pool also gives an error saying the node isn't sync'd.

image

image

@zack-bitcoin
Copy link
Owner

what does block:height(). return?
api:height only tells you how many headers you have downloaded. Headers are a lot quicker than blocks.

It seems like your node is trying to contact one of the other nodes, and it is failing.

Is this your public node?
Are you mining?

When mining, the nodes contact each other regularly, and it would make sense if the message would occasionally fail, since my node has a lot of traffic and the software isn't perfect.

@Mandelhoff
Copy link
Contributor Author

Public node - yes.
Mining - no. (My pool wouldn't start.)

I gave it a make prod-clean and then build. It's syncing well now.

image

If you have any tips about preventing the sync timeouts, please let me know.

@zack-bitcoin
Copy link
Owner

When you go offline, my node deletes yours from the list of peers.
And when you go offline, you delete your own list of peers.

@zack-bitcoin
Copy link
Owner

zack-bitcoin commented Feb 6, 2018

fixed sync:stop().
If you want to turn a node off while it is syncing, it is probably safest to stop the syncing first before you do api:off().

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