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

Support Shanghai in Reference Tests #4900

Merged
merged 4 commits into from
Jan 10, 2023

Conversation

shemnon
Copy link
Contributor

@shemnon shemnon commented Jan 9, 2023

PR description

Add support for Shanghai in reference tests

  • Add Shanghai and Cancun milestones
  • Add "withdrawals" and "withdrawalsRoot" to json objects
  • Migrate to schedule by block header.

Signed-off-by: Danno Ferrin [email protected]

Fixed Issue(s)

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if
    updates are required.

Changelog

Add support for Shanghai in reference tests
* Add Shanghai and Cancun milestones
* Add "withdrawals" and "withdrawalsRoot" to json objects
* Migrate to schedule by block header.

Signed-off-by: Danno Ferrin <[email protected]>
Copy link
Contributor

@macfarla macfarla left a comment

Choose a reason for hiding this comment

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

LGTM - I'm assuming the commented out lines will come in for withdrawals

@@ -175,6 +176,7 @@ public ReferenceTestBlockHeader(
baseFee != null ? Wei.fromHexString(baseFee) : null, // baseFee
Hash.fromHexString(mixHash), // mixHash
Bytes.fromHexStringLenient(nonce).toLong(),
// withdrawalsRoot == null ? Hash.EMPTY : Hash.fromHexString(withdrawalsRoot),
Copy link
Contributor

Choose a reason for hiding this comment

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

is this a TODO?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is what withdrawals will do with it's code, once it's merged.

@@ -157,6 +157,7 @@
@JsonProperty("baseFeePerGas") final String baseFee,
@JsonProperty("mixHash") final String mixHash,
@JsonProperty("nonce") final String nonce,
@JsonProperty("withdrawalsRoot") final String withdrawalsRoot,

Check notice

Code scanning / CodeQL

Useless parameter

The parameter 'withdrawalsRoot' is never used.
Copy link
Contributor

@jframe jframe left a comment

Choose a reason for hiding this comment

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

LGTM

@siladu siladu mentioned this pull request Jan 10, 2023
27 tasks
Copy link
Contributor

@siladu siladu left a comment

Choose a reason for hiding this comment

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

Nice! I've made a note to revisit these comments on the Withdrawals Epic: #4746

@macfarla macfarla enabled auto-merge (squash) January 10, 2023 04:25
@macfarla macfarla merged commit e129c9f into hyperledger:main Jan 10, 2023
macfarla added a commit to macfarla/besu that referenced this pull request Jan 10, 2023
* Support Shanghai in Reference Tests

Add support for Shanghai in reference tests
* Add Shanghai and Cancun milestones
* Add "withdrawals" and "withdrawalsRoot" to json objects
* Migrate to schedule by block header.

Signed-off-by: Danno Ferrin <[email protected]>

* Add pending withdrawal code to test case spec

Signed-off-by: Danno Ferrin <[email protected]>

Signed-off-by: Danno Ferrin <[email protected]>
Co-authored-by: Sally MacFarlane <[email protected]>
Signed-off-by: Sally MacFarlane <[email protected]>
eum602 pushed a commit to lacchain/besu that referenced this pull request Nov 3, 2023
* Support Shanghai in Reference Tests

Add support for Shanghai in reference tests
* Add Shanghai and Cancun milestones
* Add "withdrawals" and "withdrawalsRoot" to json objects
* Migrate to schedule by block header.

Signed-off-by: Danno Ferrin <[email protected]>

* Add pending withdrawal code to test case spec

Signed-off-by: Danno Ferrin <[email protected]>

Signed-off-by: Danno Ferrin <[email protected]>
Co-authored-by: Sally MacFarlane <[email protected]>
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