Skip to content

Commit

Permalink
fix: (ProposerRunner) missing block summary for Deneb (#1319)
Browse files Browse the repository at this point in the history
  • Loading branch information
moshe-blox authored Feb 26, 2024
1 parent 6915e7d commit ec780a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions protocol/v2/ssv/runner/proposer.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,9 @@ func summarizeBlock(block any) (summary blockSummary, err error) {
summary.Hash = b.Body.ExecutionPayload.BlockHash
summary.Version = spec.DataVersionDeneb

case *apiv1deneb.BlockContents:
return summarizeBlock(b.Block)

case *apiv1capella.BlindedBeaconBlock:
if b == nil || b.Body == nil || b.Body.ExecutionPayloadHeader == nil {
return summary, fmt.Errorf("block, body or execution payload header is nil")
Expand Down

0 comments on commit ec780a7

Please sign in to comment.