Skip to content

fix: return UnsupportedFork on V2 endpoints#4593

Merged
Rjected merged 3 commits intomainfrom
dan/return-unsupported-fork-on-v2-endpoints
Sep 15, 2023
Merged

fix: return UnsupportedFork on V2 endpoints#4593
Rjected merged 3 commits intomainfrom
dan/return-unsupported-fork-on-v2-endpoints

Conversation

@Rjected
Copy link
Member

@Rjected Rjected commented Sep 14, 2023

Fixes the hive ForkchoiceUpdatedV2 To Request Cancun Payload, Nil Beacon Root (Cancun) and GetPayloadV2 To Request Cancun Payload tests.

This implements the modification to the V2 methods, to return UnsupportedFork for post-cancun blocks.

@Rjected Rjected added C-bug An unexpected or incorrect behavior A-rpc Related to the RPC implementation A-consensus Related to the consensus engine E-cancun Related to the Cancun network upgrade labels Sep 14, 2023
@Rjected Rjected requested a review from mattsse as a code owner September 14, 2023 00:51
@Rjected
Copy link
Member Author

Rjected commented Sep 14, 2023

whoops, this breaks some other tests - need to fix

@codecov
Copy link

codecov bot commented Sep 14, 2023

Codecov Report

Merging #4593 (d0a0417) into main (a572c3b) will decrease coverage by 0.02%.
The diff coverage is 85.18%.

Impacted file tree graph

Files Changed Coverage Δ
crates/rpc/rpc-engine-api/src/engine_api.rs 79.43% <85.18%> (+0.19%) ⬆️

... and 14 files with indirect coverage changes

Flag Coverage Δ
integration-tests 16.78% <85.18%> (+0.04%) ⬆️
unit-tests 63.97% <62.96%> (-0.04%) ⬇️

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

Components Coverage Δ
reth binary 30.85% <ø> (ø)
blockchain tree 83.58% <ø> (ø)
pipeline 90.53% <ø> (ø)
storage (db) 75.32% <ø> (ø)
trie 94.88% <ø> (ø)
txpool 49.14% <ø> (-0.49%) ⬇️
networking 77.20% <ø> (-0.09%) ⬇️
rpc 57.40% <85.18%> (+0.02%) ⬆️
consensus 63.40% <ø> (ø)
revm 31.56% <ø> (ø)
payload builder 8.97% <ø> (+2.84%) ⬆️
primitives 86.52% <ø> (-0.03%) ⬇️

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

lgtm, like the spec docs

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

lgtm, needs rebase to fix clippy

@Rjected Rjected force-pushed the dan/return-unsupported-fork-on-v2-endpoints branch from 8515c42 to d0a0417 Compare September 15, 2023 17:44
@Rjected Rjected added this pull request to the merge queue Sep 15, 2023
Merged via the queue into main with commit 357301c Sep 15, 2023
@Rjected Rjected deleted the dan/return-unsupported-fork-on-v2-endpoints branch September 15, 2023 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-consensus Related to the consensus engine A-rpc Related to the RPC implementation C-bug An unexpected or incorrect behavior E-cancun Related to the Cancun network upgrade

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants