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

eth: Always check header time. #2034

Merged
merged 1 commit into from Jan 12, 2023

Conversation

JoeGruffins
Copy link
Member

Post merge geth will report both the current and highest block as the same number. Check the header time even when we would have been synced before the merge.

closes #2017

@JoeGruffins
Copy link
Member Author

Now sync status is always zero, so still not perfect. Not sure how to determine percent synced when talking to a geth node. The user can always look at their geth node however. Server is just wrong, Unix is already seconds.

@JoeGruffins JoeGruffins force-pushed the fixethsyncstatusagain branch 2 times, most recently from 1218aaa to 7e5a022 Compare January 10, 2023 02:52
@JoeGruffins JoeGruffins changed the title eth: Check header time always. eth: Always check header time. Jan 10, 2023
@JoeGruffins
Copy link
Member Author

This page may have some insight into the process https://docs.ava.do/packages/geth/. There is probably a span during initial sync where the prog.CurrentBlock and prog.HighestBlock are different. After that, it looks like their dashboard will just say 99% until the headers are new. We could do that I suppose.

@JoeGruffins JoeGruffins marked this pull request as ready for review January 10, 2023 03:22
@chappjc
Copy link
Member

chappjc commented Jan 10, 2023

I don't quite get why sync progress is useless after merge, but I agree that as longs as we don't say synced when it's not, that's what's important.

Good catch on the server units.

client/asset/eth/eth.go Outdated Show resolved Hide resolved
@chappjc chappjc added this to the 0.6 milestone Jan 10, 2023
client/asset/eth/eth.go Outdated Show resolved Hide resolved
@chappjc chappjc added the bug bug or bugfix label Jan 11, 2023
Post merge geth will report both the current and highest block as the
same number. Check the header time even when we would have been synced
before the merge.
@chappjc chappjc merged commit 5bfadea into decred:master Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bug or bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

geth: Sync status always %100.
3 participants