re-add comment for `PayloadAttributesV2` usage (#5658)
As followup from #5654, ensure that we still keep the comment around referring to the correct `forkchoiceUpdated` to use being driven by the fork schedule.
This commit is contained in:
parent
1cc44729ab
commit
d8728b7b28
|
@ -533,9 +533,15 @@ template BlindedBlockContents*(
|
||||||
|
|
||||||
template PayloadAttributes*(
|
template PayloadAttributes*(
|
||||||
kind: static ConsensusFork): auto =
|
kind: static ConsensusFork): auto =
|
||||||
|
# This also determines what `engine_forkchoiceUpdated` version will be used.
|
||||||
when kind >= ConsensusFork.Deneb:
|
when kind >= ConsensusFork.Deneb:
|
||||||
typedesc[PayloadAttributesV3]
|
typedesc[PayloadAttributesV3]
|
||||||
elif kind >= ConsensusFork.Capella:
|
elif kind >= ConsensusFork.Capella:
|
||||||
|
# https://github.com/ethereum/execution-apis/blob/v1.0.0-beta.3/src/engine/shanghai.md#specification-1
|
||||||
|
# Consensus layer client MUST call this method instead of
|
||||||
|
# `engine_forkchoiceUpdatedV1` under any of the following conditions:
|
||||||
|
# `headBlockHash` references a block which `timestamp` is greater or
|
||||||
|
# equal to the Shanghai timestamp
|
||||||
typedesc[PayloadAttributesV2]
|
typedesc[PayloadAttributesV2]
|
||||||
elif kind >= ConsensusFork.Bellatrix:
|
elif kind >= ConsensusFork.Bellatrix:
|
||||||
typedesc[PayloadAttributesV1]
|
typedesc[PayloadAttributesV1]
|
||||||
|
|
Loading…
Reference in New Issue