@@ -657,7 +657,8 @@ proc getBlindedBeaconBlock[T](
657657
658658proc getBlindedBlockParts (
659659 node: BeaconNode , head: BlockRef , pubkey: ValidatorPubKey ,
660- slot: Slot , randao: ValidatorSig , validator_index: ValidatorIndex ):
660+ slot: Slot , randao: ValidatorSig , validator_index: ValidatorIndex ,
661+ graffiti: GraffitiBytes ):
661662 Future [Result [(bellatrix.ExecutionPayloadHeader , ForkedBeaconBlock ), string ]]
662663 {.async .} =
663664 let
@@ -696,7 +697,7 @@ proc getBlindedBlockParts(
696697 getFieldNames (bellatrix.ExecutionPayloadHeader ))
697698
698699 let newBlock = await makeBeaconBlockForHeadAndSlot (
699- node, randao, validator_index, node.graffitiBytes , head, slot,
700+ node, randao, validator_index, graffiti , head, slot,
700701 execution_payload = Opt .some shimExecutionPayload,
701702 transactions_root = Opt .some executionPayloadHeader.get.transactions_root,
702703 execution_payload_root =
@@ -715,7 +716,8 @@ proc proposeBlockMEV(
715716 randao: ValidatorSig , validator_index: ValidatorIndex ):
716717 Future [Opt [BlockRef ]] {.async .} =
717718 let blindedBlockParts = await getBlindedBlockParts (
718- node, head, validator.pubkey, slot, randao, validator_index)
719+ node, head, validator.pubkey, slot, randao, validator_index,
720+ node.graffitiBytes)
719721 if blindedBlockParts.isErr:
720722 # Not signed yet, fine to try to fall back on EL
721723 beacon_block_builder_missed_with_fallback.inc ()
@@ -787,7 +789,7 @@ proc makeBlindedBeaconBlockForHeadAndSlot*(
787789 forkyState.data.validators.item (validator_index).pubkey
788790
789791 blindedBlockParts = await getBlindedBlockParts (
790- node, head, pubkey, slot, randao_reveal, validator_index)
792+ node, head, pubkey, slot, randao_reveal, validator_index, graffiti )
791793 if blindedBlockParts.isErr:
792794 # Don't try EL fallback -- VC specifically requested a blinded block
793795 return err (" Unable to create blinded block" )
0 commit comments