-
Notifications
You must be signed in to change notification settings - Fork 234
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
How to determine if the node is in the "looking for assume-valid-target" stage? #4485
Comments
Technically possible. |
Are you planning to expose an interface to retrieve this state? |
Yes, we are currently planning to expose |
Feature Request
Is your feature request related to a problem? Please describe.
To better show the synchronization process, we will inform the user that they are in the early synchronization stage, which is 'looking for assume-valid-target'. So we need to know how to get that the ckb node is looking for assume-valid-target
Describe the solution you'd like
Now we are using log matching for determination. But the log changes several times. So I want to know if there is a more accurate way to determine this.
Describe alternatives you've considered
Could we use the
sync_status
to get thebest_known_block_number
, and check whether thebest_known_block_number
is less than theassume-valid-target block
number?The text was updated successfully, but these errors were encountered: