chore: add version to PayloadBuilderAttributes::try_new (#12137)

This commit is contained in:
0xOsiris
2024-10-28 07:37:36 -07:00
committed by GitHub
parent af5ae5a792
commit 3f4634ccbc
7 changed files with 24 additions and 6 deletions

View File

@ -1165,7 +1165,7 @@ where
attrs: <N::Engine as PayloadTypes>::PayloadAttributes,
head: Header,
state: ForkchoiceState,
_version: EngineApiMessageVersion,
version: EngineApiMessageVersion,
) -> OnForkChoiceUpdated {
// 7. Client software MUST ensure that payloadAttributes.timestamp is greater than timestamp
// of a block referenced by forkchoiceState.headBlockHash. If this condition isn't held
@ -1183,6 +1183,7 @@ where
match <<N:: Engine as PayloadTypes>::PayloadBuilderAttributes as PayloadBuilderAttributes>::try_new(
state.head_block_hash,
attrs,
version as u8
) {
Ok(attributes) => {
// send the payload to the builder and return the receiver for the pending payload