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

Calling tx/:txid and /block-height/:height "in sync" based on bitcoind zmq notifications #458

Open
datgrog opened this issue Jun 8, 2023 · 0 comments

Comments

@datgrog
Copy link

datgrog commented Jun 8, 2023

I'm running regtest scenarios where my code is calling my local esplora backend REST api based on bitcoind zmq notifications with zmqpubhashtx and zmqpubhashblock. My issue is that I call these two endpoints (tx/:txid and /block-height/:height) before esplora backend actually index them, which is causing errors:

INFO - handle GET /tx/8332bc9fe058113cae99b31f5472a71a757cc3cf6710ba7b2c3ca0586219333f
WARN - HttpError(404, "Transaction not found")
INFO - handle GET /block-height/106
WARN - HttpError(404, "Block not found")

Is there a way to call this endpoints only when these resources are available ?

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