Sitelet https://github.com/ethereum-optimism/optimism/pull/14022
Skip to content

op-service: add RequestsHash to RPCHeader - #14022

Merged
tynes merged 5 commits into
developfrom
gk/7685
Jan 28, 2025
Merged

tynes merged 5 commits into
developfrom
gk/7685

Conversation

@geoknee

@geoknee geoknee commented Jan 28, 2025

Copy link
Copy Markdown
Contributor

Closes #13981

@geoknee
geoknee requested review from a team and axelKingsley January 28, 2025 16:30
Comment thread op-service/sources/types.go Outdated
@geoknee geoknee changed the title op-service: add RequestsHash to RPCHeader op-service: add RequestsHash to RPCHeader Jan 28, 2025
@codecov

codecov Bot commented Jan 28, 2025 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 42.63%. Comparing base (7d6d154) to head (42f0bd8).
Report is 39 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #14022      +/-   ##
===========================================
- Coverage    46.90%   42.63%   -4.28%     
===========================================
  Files          974      809     -165     
  Lines        81670    72359    -9311     
  Branches       759        0     -759     
===========================================
- Hits         38307    30847    -7460     
+ Misses       40377    38794    -1583     
+ Partials      2986     2718     -268     
Flag Coverage Δ
cannon-go-tests-32 ?
cannon-go-tests-64 ?
contracts-bedrock-tests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
op-service/sources/types.go 64.24% <100.00%> (+0.40%) ⬆️

... and 174 files with indirect coverage changes

Comment thread op-service/sources/types.go

@protolambda protolambda left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Need the omitempty tag to not end up with a null json attribute when encoding.

Comment thread op-service/sources/types.go Outdated
Co-authored-by: protolambda <proto@protolambda.com>
@tynes
tynes added this pull request to the merge queue Jan 28, 2025
Merged via the queue into develop with commit 026199a Jan 28, 2025
@tynes
tynes deleted the gk/7685 branch January 28, 2025 18:54
@geoknee geoknee added the H-l1-pectra-defense Softfork: change is a paret of upgrade 12 label Jan 31, 2025
Rjected pushed a commit to paradigmxyz/optimism that referenced this pull request Feb 25, 2025
* add RequestsHash to op-service RPCHeader type

* sources.RPCHeader.RequestsHash needs "requestsHash" json struct tag

not "requestsHash" as in geth

* remove comment

This was fixed upstream ethereum/go-ethereum#30926

* add comment

* Update op-service/sources/types.go

Co-authored-by: protolambda <proto@protolambda.com>

---------

Co-authored-by: protolambda <proto@protolambda.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

H-l1-pectra-defense Softfork: change is a paret of upgrade 12

Projects

None yet

Development

Successfully merging this pull request may close these issues.

op-serivce: adaptation for Ethereum Pectra upgrade EIP-7685

3 participants