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

Get all available block count via RPC #522

Open
ZenVoich opened this issue Aug 17, 2024 · 0 comments
Open

Get all available block count via RPC #522

ZenVoich opened this issue Aug 17, 2024 · 0 comments

Comments

@ZenVoich
Copy link

Is your feature request related to a problem? Please describe.
I want to show my own node syncing progress bar, but I could not find a way to get all available block count via RPC call.

Describe the solution you'd like
Maybe add availableHeaderCount or totalHeaderCount to getBlockDagInfo result

Describe alternatives you've considered
getBlockDagInfo returns headerCount - synced headers, and blockCount - synced blocks, but no way to get not yet synced total header count. So if I use them it shows wrong results until headers are synced.

Additional context
I see IBD: Processed 39960 block headers (60%) in node output. I suppose that number is available internally

@kaspanet kaspanet deleted a comment Oct 6, 2024
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

1 participant