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

Remove issueWithAncestors #3153

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

Conversation

StephenButtolph
Copy link
Contributor

Why this should be merged

issueWithAncestors is a weird method. While it is similar to the other block issuance flow, its complexity is really only there to attempt to better handle the case that the VM builds on top of a non-verified block. This is highly unusual... VMs typically always build on top of the currently preferred block.

How this works

deliver already handles the case that the block isn't able to be issued to consensus. So we can essentially just directly call it if we don't care about attempting to issue ancestors of the newly built block from the cache of non-verified blocks.

The call to canIssueChildOn outside of deliver is just to prevent cancelling dependencies of this newly built block if it is built on a weird parent.

How this was tested

Base automatically changed from reduce-usage-of-get-block to master July 13, 2024 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog 🗄️
Development

Successfully merging this pull request may close these issues.

None yet

1 participant