Skip to content

Backend block tip height endpoint #3687

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

Merged
merged 2 commits into from
Apr 28, 2023

Conversation

softsimon
Copy link
Member

@softsimon softsimon commented Apr 26, 2023

Previously:

Using esplora:
/api/blocks/tip/height -> esplora
/api/v1/blocks/tip/height - not implemented

Using bitcoind only.
/api/blocks/tip/height -> asking bitcoind for height
/api/v1/blocks/tip/height - asking bitcoind for height

With this PR.

Using esplora:
/api/blocks/tip/height -> esplora
/api/v1/blocks/tip/height - returning current block height from mempool backend

Using bitcoind only.
/api/blocks/tip/height -> returning current block height from mempool backend
/api/v1/blocks/tip/height - returning current block height from mempool backend

Running Mempool backend with Esplora and accessing the 2 different /api/ and /api/v1/ blocks/tip/height endpoints now showing different heights during sync

Screenshot 2023-04-26 at 13 46 02

@cla-bot cla-bot bot added the cla-signed label Apr 26, 2023
@softsimon softsimon requested a review from wiz April 26, 2023 09:51
@softsimon softsimon merged commit f61f520 into master Apr 28, 2023
@softsimon softsimon deleted the simon/backend-block-tip-height-endpoint branch April 28, 2023 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy