@@ -1048,6 +1048,16 @@ def engine_payload_attribute_max_blobs_per_block(
10481048 del block_number , timestamp
10491049 return False
10501050
1051+ @classmethod
1052+ def engine_payload_attribute_slot_number (
1053+ cls , * , block_number : int = 0 , timestamp : int = 0
1054+ ) -> bool :
1055+ """
1056+ At genesis, payload attributes do not include the slot number.
1057+ """
1058+ del block_number , timestamp
1059+ return False
1060+
10511061 @classmethod
10521062 def engine_forkchoice_updated_version (
10531063 cls , * , block_number : int = 0 , timestamp : int = 0
@@ -3406,3 +3416,19 @@ def header_slot_number_required(
34063416 """Slot number in header required from Amsterdam (EIP-7843)."""
34073417 del block_number , timestamp
34083418 return True
3419+
3420+ @classmethod
3421+ def engine_forkchoice_updated_version (
3422+ cls , * , block_number : int = 0 , timestamp : int = 0
3423+ ) -> Optional [int ]:
3424+ """From Amsterdam, forkchoice updated calls must use version 4."""
3425+ del block_number , timestamp
3426+ return 4
3427+
3428+ @classmethod
3429+ def engine_payload_attribute_slot_number (
3430+ cls , * , block_number : int = 0 , timestamp : int = 0
3431+ ) -> bool :
3432+ """From Amsterdam, payload attributes include the slot number."""
3433+ del block_number , timestamp
3434+ return True
0 commit comments