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

Block forge should check for pending future blocks in ChainDB #579

Closed
nfrisby opened this issue Nov 17, 2021 · 3 comments · Fixed by #525
Closed

Block forge should check for pending future blocks in ChainDB #579

nfrisby opened this issue Nov 17, 2021 · 3 comments · Fixed by #525
Labels
technical debt Technical debt

Comments

@nfrisby
Copy link
Contributor

nfrisby commented Nov 17, 2021

The ChainDB only processes blocks it set aside as future blocks the next time a block is added. From the report:

In a way, calls to addBlock are how the chain database sees time advance.

Suppose we receive a block B that is slightly in the future, then idle long enough for B to no longer be in the future, and then forge a new block. Since we didn't receive any blocks after idling, we will not forge on top of B.

Since leadership opportunities are precious, we wouldn't want to squander one like that: forging on top of B would have made a more competitive block.

@nfrisby nfrisby added the technical debt Technical debt label Nov 17, 2021
@dnadales
Copy link
Member

@nfrisby, is this still relevant given the fact that we're working on this patch

@dnadales dnadales transferred this issue from IntersectMBO/ouroboros-network Nov 30, 2023
@amesgen
Copy link
Member

amesgen commented Nov 30, 2023

I think we can let this be closed by #525 👍, as this scenario will not arise anymore.

@nfrisby nfrisby linked a pull request Jan 5, 2024 that will close this issue
@nfrisby
Copy link
Contributor Author

nfrisby commented Jan 5, 2024

Closing. Yeah, PR 525 should prevent this.

@nfrisby nfrisby closed this as completed Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
technical debt Technical debt
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants