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

add synced or not synced indicator #13

Open
KanoczTomas opened this issue Feb 27, 2017 · 3 comments
Open

add synced or not synced indicator #13

KanoczTomas opened this issue Feb 27, 2017 · 3 comments
Assignees

Comments

@KanoczTomas
Copy link
Owner

listen for the latest block from zeromq and compare it with what we have ...

@KanoczTomas
Copy link
Owner Author

KanoczTomas commented Feb 28, 2017

use getblockchaininfo comparemthe header and block count ...
also check verification progress, if close to 1 we are done. it will never be 1 ...

another way is getting the bestblock hash and then looking at the timestamp of it - if too old we are syncing ...
https://github.com/bitcoin/bitcoin/blob/6bef7ca8bc6a0894875eede7cbb2f28e77e91bd7/src/qt/modaloverlay.cpp#L130
nPOWTargetSpacing is 600 (10 minutes) in the code

@KanoczTomas
Copy link
Owner Author

when not synced show the progress ... and estimate to sync

@KanoczTomas
Copy link
Owner Author

make blocks increment by 1 when a block received.

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

No branches or pull requests

1 participant