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

Decouple chain-sync client and block-fetch #175

Open
agaffney opened this issue Oct 19, 2024 · 0 comments
Open

Decouple chain-sync client and block-fetch #175

agaffney opened this issue Oct 19, 2024 · 0 comments

Comments

@agaffney
Copy link
Contributor

We currently call block-fetch directly in the chain-sync client RollForward handler. Instead, we should generate an event, and the ledger can decide when/if to fetch the block content. We'll need to provide a way for the ledger to ask for a range of blocks, such as a callback function that the consumer can define. This may need to include a connection ID(s) to ensure we ask a node that has already sent us the block headers

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