@@ -758,21 +758,19 @@ where
758
758
head : Header ,
759
759
state : ForkchoiceState ,
760
760
) -> OnForkChoiceUpdated {
761
- // 7. Client software MUST ensure that payloadAttributes.timestamp is
762
- // greater than timestamp of a block referenced by
763
- // forkchoiceState.headBlockHash. If this condition isn't held client
764
- // software MUST respond with -38003: `Invalid payload attributes` and
765
- // MUST NOT begin a payload build process. In such an event, the
766
- // forkchoiceState update MUST NOT be rolled back.
761
+ // 7. Client software MUST ensure that payloadAttributes.timestamp is greater than timestamp
762
+ // of a block referenced by forkchoiceState.headBlockHash. If this condition isn't held
763
+ // client software MUST respond with -38003: `Invalid payload attributes` and MUST NOT
764
+ // begin a payload build process. In such an event, the forkchoiceState update MUST NOT
765
+ // be rolled back.
767
766
if attrs. timestamp <= head. timestamp . into ( ) {
768
767
return OnForkChoiceUpdated :: invalid_payload_attributes ( )
769
768
}
770
769
771
770
// 8. Client software MUST begin a payload build process building on top of
772
- // forkchoiceState.headBlockHash and identified via buildProcessId value
773
- // if payloadAttributes is not null and the forkchoice state has been
774
- // updated successfully. The build process is specified in the Payload
775
- // building section.
771
+ // forkchoiceState.headBlockHash and identified via buildProcessId value if
772
+ // payloadAttributes is not null and the forkchoice state has been updated successfully.
773
+ // The build process is specified in the Payload building section.
776
774
let attributes = PayloadBuilderAttributes :: new ( state. head_block_hash , attrs) ;
777
775
778
776
// send the payload to the builder and return the receiver for the pending payload id,
0 commit comments