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

Handle unordered bundles #9

Open
Dentosal opened this issue Oct 28, 2024 · 0 comments · May be fixed by #10
Open

Handle unordered bundles #9

Dentosal opened this issue Oct 28, 2024 · 0 comments · May be fixed by #10
Assignees

Comments

@Dentosal
Copy link
Member

Dentosal commented Oct 28, 2024

Bundles are not necessarily committed to the DA in-order, even though the current code assumes this. It simply returns bundles in the order they're completed. The solution is to check block numbers contained within bundles and buffer blocks until the next consecutive block is found. However, since the very first bundle we fetch could be out-of-order as well, we might need to look backwards as well, besed on some heuristic. In particular, great care must be taken on restart situations, where we have processed everything up to a certain block height (on either chain) and we wish to resume synchronization from there.

@Dentosal Dentosal self-assigned this Oct 28, 2024
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

Successfully merging a pull request may close this issue.

1 participant