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

vm: remove backfill of block hashes on 2935 activation #3478

Merged
merged 1 commit into from
Jun 30, 2024

Conversation

g11tech
Copy link
Contributor

@g11tech g11tech commented Jun 30, 2024

remove the backfill of the last 256 hashes as it is already removed from the eip following kenya discussions

Copy link
Member

@jochem-brouwer jochem-brouwer left a comment

Choose a reason for hiding this comment

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

Two questions/comments. It also seems that CI is not passing 🤔

@@ -524,28 +522,6 @@ export async function accumulateParentBlockHash(
}
await putBlockHash(this, parentHash, currentBlockNumber - BIGINT_1)
Copy link
Member

Choose a reason for hiding this comment

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

I think we can now remove this function, since it is only called once.

// More than blocks activation to build, so we can ensure that we can also retrieve block 0 or block 1 hash at block 300
const blocksToBuild = 300
const blocksToBuild = 500
Copy link
Member

Choose a reason for hiding this comment

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

Do we now need 500 blocks, or can we also "just" create a few blocks (say 5)? We only need to test that the last blockhash is put into the contract at fork activation time.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes the test tests various scenarios of blockhash as well as the contract code windows as well as activation time

@g11tech g11tech merged commit 2a774e5 into master Jun 30, 2024
33 of 34 checks passed
@acolytec3 acolytec3 deleted the remove-blockhashes-seed branch June 30, 2024 12:08
@holgerd77
Copy link
Member

Short note: there is a nice type label type: spec updates which sums up these kind of changes nicely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants