Skip to content

Commit

Permalink
fix: update SSE payload attributes to be spec compliant (#6471)
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig authored Feb 22, 2024
1 parent c999e4a commit eeaa7da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ export async function getPayloadAttributesForSSE(
const ssePayloadAttributes: allForks.SSEPayloadAttributes = {
proposerIndex: prepareState.epochCtx.getBeaconProposer(prepareSlot),
proposalSlot: prepareSlot,
proposalBlockNumber: prepareState.latestExecutionPayloadHeader.blockNumber + 1,
parentBlockNumber: prepareState.latestExecutionPayloadHeader.blockNumber,
parentBlockRoot,
parentBlockHash: parentHash,
payloadAttributes,
Expand Down
2 changes: 1 addition & 1 deletion packages/types/src/bellatrix/sszTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export const SSEPayloadAttributesCommon = new ContainerType(
{
proposerIndex: UintNum64,
proposalSlot: Slot,
proposalBlockNumber: UintNum64,
parentBlockNumber: UintNum64,
parentBlockRoot: Root,
parentBlockHash: Root,
},
Expand Down

0 comments on commit eeaa7da

Please sign in to comment.