Skip to content

Commit

Permalink
feat: Add support for Electra beacon block message
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Oct 15, 2024
1 parent 4e9f305 commit 8ea761f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/cannon/deriver/beacon/eth/v2/beacon_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,8 @@ func getBlockMessage(block *spec.VersionedSignedBeaconBlock) (ssz.Marshaler, err
return block.Capella.Message, nil
case spec.DataVersionDeneb:
return block.Deneb.Message, nil
case spec.DataVersionElectra:
return block.Electra.Message, nil
default:
return nil, fmt.Errorf("unsupported block version: %s", block.Version)
}
Expand Down

0 comments on commit 8ea761f

Please sign in to comment.