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

[PoC] include a delay in block broadcasting to mitigate late blocks #2120

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

lrubiorod
Copy link
Contributor

Close #2117

@lrubiorod lrubiorod changed the title feat(node): include a delay in block broadcasting [PoC] include a delay in block broadcasting to mitigate late blocks Nov 26, 2021
@@ -3528,19 +3593,19 @@ mod tests {
assert_ne!(block_1, block_mal_1);

// Process the modified candidate first
chain_manager.process_candidate(block_mal_1);
chain_manager.process_candidate(&mut Context::new(), block_mal_1, (0, 0));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't know it was possible to call Context::new()... But maybe it's better to send an AddCandidates message? This is inside an async block so we can just call send().await.

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.

PoC: late blocks retention delay
2 participants