Skip to content

Commit 604b98d

Browse files
committed
Fix test
1 parent bead8d8 commit 604b98d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

tests/core/pyspec/eth2spec/test/helpers/execution_payload.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,15 @@ def build_empty_signed_execution_payload_header(spec, state):
297297
if not is_post_gloas(spec):
298298
return
299299
message = build_empty_post_gloas_execution_payload_header(spec, state)
300-
privkey = privkeys[message.builder_index]
301-
signature = spec.get_execution_payload_header_signature(state, message, privkey)
300+
proposer_index = spec.get_beacon_proposer_index(state)
301+
302+
# For self-builds, use point at infinity signature as per spec
303+
if message.builder_index == proposer_index:
304+
signature = spec.G2_POINT_AT_INFINITY
305+
else:
306+
privkey = privkeys[message.builder_index]
307+
signature = spec.get_execution_payload_header_signature(state, message, privkey)
308+
302309
return spec.SignedExecutionPayloadHeader(
303310
message=message,
304311
signature=signature,

0 commit comments

Comments
 (0)