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

fix: use pending state if available #11391

Merged
merged 2 commits into from
Oct 1, 2024
Merged

fix: use pending state if available #11391

merged 2 commits into from
Oct 1, 2024

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Oct 1, 2024

this makes use of the stored pending state if we have it

@mattsse mattsse added C-bug An unexpected or incorrect behavior A-db Related to the database labels Oct 1, 2024
@mattsse mattsse enabled auto-merge October 1, 2024 18:12
Copy link
Member

@Rjected Rjected left a comment

Choose a reason for hiding this comment

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

have a q, wondering if related to the test failures

Comment on lines 1161 to 1162
if pending.anchor().hash == block_hash {
return Ok(Some(Box::new(self.block_state_provider(&pending)?)));
Copy link
Member

Choose a reason for hiding this comment

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

why are we checking that the anchor is equal here, instead of the pending.hash()?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ah good point,
bad autocomplete

Copy link
Member

@Rjected Rjected left a comment

Choose a reason for hiding this comment

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

lgtm now

@mattsse mattsse added this pull request to the merge queue Oct 1, 2024
Merged via the queue into main with commit 2d221db Oct 1, 2024
35 checks passed
@mattsse mattsse deleted the matt/use-pending-state branch October 1, 2024 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-db Related to the database C-bug An unexpected or incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants