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(anvil): set best_number to state.block.number if greater #9543

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

yash-atreya
Copy link
Member

…rk activated

Motivation

Closes #9539

Solution

storage.best_number should be set to max(state.block.number, fork_block_number) while loading state with fork activated

Copy link
Collaborator

@grandizzy grandizzy left a comment

Choose a reason for hiding this comment

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

lgtm!

@yash-atreya yash-atreya merged commit 539760c into master Dec 12, 2024
22 checks passed
@yash-atreya yash-atreya deleted the yash/fix-9539 branch December 12, 2024 08:56
@grandizzy grandizzy added T-bug Type: bug C-anvil Command: anvil labels Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-anvil Command: anvil T-bug Type: bug
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

--state seems to not work with --fork-block-number
3 participants