Skip to content

Commit

Permalink
feat(fw): use forkchoice updated version 4 for prague.
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer-tb committed Oct 31, 2024
1 parent 4548018 commit 2567dd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/ethereum_test_fixtures/tests/test_blockchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@
).requests_list
],
],
"forkchoiceUpdatedVersion": "3",
"forkchoiceUpdatedVersion": "4",
"newPayloadVersion": "4",
"validationError": "BlockException.INCORRECT_BLOCK_FORMAT"
"|TransactionException.INTRINSIC_GAS_TOO_LOW",
Expand Down Expand Up @@ -948,7 +948,7 @@
],
],
"newPayloadVersion": "4",
"forkchoiceUpdatedVersion": "3",
"forkchoiceUpdatedVersion": "4",
"validationError": "BlockException.INCORRECT_BLOCK_FORMAT"
"|TransactionException.INTRINSIC_GAS_TOO_LOW",
},
Expand Down
10 changes: 0 additions & 10 deletions src/ethereum_test_forks/forks/forks.py
Original file line number Diff line number Diff line change
Expand Up @@ -976,16 +976,6 @@ def engine_new_payload_version(
"""
return 4

@classmethod
def engine_forkchoice_updated_version(
cls, block_number: int = 0, timestamp: int = 0
) -> Optional[int]:
"""
At Prague, version number of NewPayload and ForkchoiceUpdated diverge.
"""
return 3


class CancunEIP7692( # noqa: SC200
Cancun,
transition_tool_name="Prague", # Evmone enables (only) EOF at Prague
Expand Down

0 comments on commit 2567dd1

Please sign in to comment.