-
Notifications
You must be signed in to change notification settings - Fork 878
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
Wire EIP-2935 into evmtool #7096
Conversation
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>
fixes holiman/goevmlab#146 |
There was a problem hiding this 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>
there's a test failure -
EvmToolSpecTests > testBySpec(String, JsonNode, JsonNode, JsonNode) > t8n/shanghai-blockhash.json FAILED |
Signed-off-by: Danno Ferrin <danno@numisight.com>
blockHashLookup = | ||
(messageFrame, number) -> { | ||
long lookback = messageFrame.getBlockValues().getNumber() - number; | ||
if (lookback < 0 || lookback > BlockHashOperation.MAX_RELATIVE_BLOCK) { |
There was a problem hiding this comment.
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)
.
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>
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>
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>
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?
doc-change-required
label to this PR if updates are required.Locally, you can run these tests to catch failures early:
./gradlew build
./gradlew acceptanceTest
./gradlew integrationTest
./gradlew ethereum:referenceTests:referenceTests