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

Out of order message #52

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

Out of order message #52

wants to merge 9 commits into from

Conversation

yacovm
Copy link
Collaborator

@yacovm yacovm commented Jan 16, 2025

No description provided.

@yacovm yacovm marked this pull request as draft January 16, 2025 23:01
When it is a node's turn to propose or verify a block, it calls the BlockBuilder's BuildBlock() and Verify() methods respectively.
However, this method may take a long time to complete, and during this time, the Epoch instance cannot process messages (since proposing a new block may be called indirectly via HandleMessage).

This commit adds an asynchronous task scheduler which the Epoch uses to register a callback to make itself propose the block or verify it
it asynchronously and continue the program flow from that point onwards.

While the block is verified or built, Simplex is free to handle other messages.

Signed-off-by: Yacov Manevich <[email protected]>
@yacovm yacovm force-pushed the outOfOrderMessage branch 2 times, most recently from d7ed3bb to f36ba87 Compare January 19, 2025 01:22
@yacovm yacovm force-pushed the outOfOrderMessage branch from f36ba87 to 354dd5d Compare January 19, 2025 16:16
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 this pull request may close these issues.

1 participant