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

Wire EIP-2935 into evmtool #7096

Merged

Conversation

shemnon
Copy link
Contributor

@shemnon shemnon commented May 13, 2024

PR description

Cover one missed case where the BlockHashLookup changes in the EIP-2935
handling, ensuring the state-test tool gets proper prague handling.

Signed-off-by: Danno Ferrin danno@numisight.com

Fixed Issue(s)

Thanks for sending a pull request! Have you done the following?

  • Checked out our contribution guidelines?
  • Considered documentation and added the doc-change-required label to this PR if updates are required.
  • Considered the changelog and included an update if required.
  • For database changes (e.g. KeyValueSegmentIdentifier) considered compatibility and performed forwards and backwards compatibility tests

Locally, you can run these tests to catch failures early:

  • unit tests: ./gradlew build
  • acceptance tests: ./gradlew acceptanceTest
  • integration tests: ./gradlew integrationTest
  • reference tests: ./gradlew ethereum:referenceTests:referenceTests

Cover one missed case where the BlockHashLookup changes in the EIP-2935
handling, ensureing the `state-test` tool gets proper prague handling.

Signed-off-by: Danno Ferrin <danno@numisight.com>
@shemnon
Copy link
Contributor Author

shemnon commented May 13, 2024

fixes holiman/goevmlab#146

Copy link
Contributor

@Gabriel-Trintinalia Gabriel-Trintinalia left a comment

Choose a reason for hiding this comment

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

lgtm

Cover one missed case where the BlockHashLookup changes in the EIP-2935
handling, ensureing the `state-test` tool gets proper prague handling.

Signed-off-by: Danno Ferrin <danno@numisight.com>
@shemnon shemnon enabled auto-merge (squash) May 13, 2024 18:07
@macfarla
Copy link
Contributor

there's a test failure -

Task :ethereum:evmtool:test

EvmToolSpecTests > testBySpec(String, JsonNode, JsonNode, JsonNode) > t8n/shanghai-blockhash.json FAILED
org.opentest4j.AssertionFailedError at EvmToolSpecTests.java:168

Signed-off-by: Danno Ferrin <danno@numisight.com>
@shemnon shemnon merged commit 02a991f into hyperledger:main May 14, 2024
42 checks passed
blockHashLookup =
(messageFrame, number) -> {
long lookback = messageFrame.getBlockValues().getNumber() - number;
if (lookback < 0 || lookback > BlockHashOperation.MAX_RELATIVE_BLOCK) {
Copy link

Choose a reason for hiding this comment

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

SHould be lookback <= 0, probably. Because that means the messageframe blocknumber is the same as the one requested: BLOCKHASH(this block).

jflo pushed a commit to jflo/besu that referenced this pull request May 28, 2024
Cover one missed case where the BlockHashLookup changes in the EIP-2935
handling, ensureing the `state-test` tool gets proper prague handling.

Signed-off-by: Danno Ferrin <danno@numisight.com>

Signed-off-by: Danno Ferrin <danno@numisight.com>
Signed-off-by: Justin Florentine <justin+github@florentine.us>
matthew1001 pushed a commit to kaleido-io/besu that referenced this pull request Jun 7, 2024
Cover one missed case where the BlockHashLookup changes in the EIP-2935
handling, ensureing the `state-test` tool gets proper prague handling.

Signed-off-by: Danno Ferrin <danno@numisight.com>

Signed-off-by: Danno Ferrin <danno@numisight.com>
jflo pushed a commit to jflo/besu that referenced this pull request Jun 10, 2024
Cover one missed case where the BlockHashLookup changes in the EIP-2935
handling, ensureing the `state-test` tool gets proper prague handling.

Signed-off-by: Danno Ferrin <danno@numisight.com>

Signed-off-by: Danno Ferrin <danno@numisight.com>
Signed-off-by: Justin Florentine <justin+github@florentine.us>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants