Skip to content

Update /extended/v1/status to "syncing" if more than X blocks are missing #1055

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

Closed
mardi00 opened this issue Feb 10, 2022 · 2 comments
Closed
Labels

Comments

@mardi00
Copy link

mardi00 commented Feb 10, 2022

Is your feature request related to a problem? Please describe.
On the /extended/v1/status endpoint, the status is 'ready' even if a hundred blocks still need to be synced
{ "server_version": "stacks-blockchain-api v2.0.0 (master:8b95f1d9)", "status": "ready" }

Describe the solution you'd like
When more than X blocks (5, for example) still need to be synced, we would have the 'syncing' status
{ "server_version": "stacks-blockchain-api v2.0.0 (master:8b95f1d9)", "status": "syncing" }

@mardi00 mardi00 changed the title Update /extended/v1/status to "syncing" if more than 5 blocks are missing Update /extended/v1/status to "syncing" if more than X blocks are missing Feb 10, 2022
@zone117x
Copy link
Member

zone117x commented Feb 10, 2022

Related to existing issue #698

The API does not have the information required for this feature. Once PR stacks-network/stacks-core#2768 exposes sync status / block percentage, then the API could potentially expose that info as well. Although, if an RPC endpoint already exposes it, there's no real reason for the API to duplicate that in another endpoint.

@zone117x zone117x moved this from Recent issues to Icebox in API Board Feb 15, 2022
@zone117x zone117x moved this to Recent issues in API Board Feb 15, 2022
@smcclellan smcclellan moved this from Icebox to Backlog in API Board Jul 7, 2023
@sabbyanandan
Copy link

Given the upstream's RPC endpoint already supports it, let's not duplicate this. Closing this for now.

@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in API Board Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

4 participants