Skip to content

Preliminary london fixups #2022

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

Merged
merged 4 commits into from
Sep 2, 2021
Merged

Conversation

carver
Copy link
Contributor

@carver carver commented Sep 1, 2021

What was wrong?

When enabling London tests, some basic missing/broken functionality showed up.

How was it fixed?

  • Parse fixture configurations named "London"
  • Parse base fee from fixture header fields
  • Test that fixture-generated genesis block matches fixture's RLP-encoding
  • Crash-fix: configure base fee on genesis header

To-Do

  • Clean up commit history

Cute Animal Picture

put a cute animal picture link inside the parentheses

@carver carver mentioned this pull request Sep 1, 2021
11 tasks
@carver carver force-pushed the prelim-london-fixups branch from fe2d822 to 94573ef Compare September 1, 2021 23:20
@carver
Copy link
Contributor Author

carver commented Sep 1, 2021

I saw that you already looked at #2021 @fselmo maybe you can give a quick 👍🏻 to these extracted pieces? The fixture tests are how these bugfixes were found, so I don't feel a need to add our own duplicate tests on top.

genesis_fields = genesis_fields_from_fixture(fixture)

genesis_block = chain.get_canonical_block_by_number(0)
genesis_header = genesis_block.header

# Validate the genesis header RLP against the generated header
if 'genesisRLP' in fixture:
# Super hacky, but better than nothing: extract the header, then re-decode it
Copy link
Collaborator

Choose a reason for hiding this comment

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

works well! 👍

Copy link
Collaborator

@fselmo fselmo left a comment

Choose a reason for hiding this comment

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

Ran through this locally... LGTM! 🚢

@carver carver merged commit cba70e1 into ethereum:master Sep 2, 2021
@carver carver deleted the prelim-london-fixups branch September 2, 2021 16:15
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.

2 participants