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

add example low-level API for the chain head driver #1824

Open
niklasad1 opened this issue Oct 11, 2024 · 0 comments
Open

add example low-level API for the chain head driver #1824

niklasad1 opened this issue Oct 11, 2024 · 0 comments

Comments

@niklasad1
Copy link
Member

Currently we have only provided one example how to initialize the chainHead backend with the background task provided by subxt, found here

However, it's also possible to use the low-level API where the user is responsible for polling the driver themselves and we need be extra clear that the driver to be run to completion to shutdown properly.

For instance if one bail on the first error seen, the stopped state may not be propagated properly. See #1817 for further explanation about that.

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