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

Display Sync Percentage #1092

Open
bcongdon opened this issue Dec 7, 2017 · 1 comment · May be fixed by #1151
Open

Display Sync Percentage #1092

bcongdon opened this issue Dec 7, 2017 · 1 comment · May be fixed by #1151

Comments

@bcongdon
Copy link

bcongdon commented Dec 7, 2017

It would be nice if "SYNC" log messages displayed a sync progress percentage like the reference implementation does.

For context, the reference implentation's UpdateTip message looks like this:
2014-06-27 12:59:10 UpdateTip: new best=00000000000000002a03b175f183c3bbc440f5c2a171e958bfd504582f711f70 height=308004 log2_work=79.405055 tx=41447698 date=2014-06-27 00:04:17 progress=0.998105

Having a sync percentage makes it somewhat more clear how long a blockchain sync will take

If there is interest, I'd be happy to work on this

@Roasbeef
Copy link
Member

Sounds like a great feature addition! One route you can go to gauge the sync metric is either pinning the total cumulative work in a constant, or just using the timestamps as a heuristics (not as accurate due to leeway allowed w.r.t timestamps).

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

Successfully merging a pull request may close this issue.

2 participants