Skip to content

Commit

Permalink
fix version check
Browse files Browse the repository at this point in the history
  • Loading branch information
saolyn committed Sep 30, 2024
1 parent dfe8efb commit a6480ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions beacon-chain/rpc/eth/beacon/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,9 @@ func (s *Server) GetBlockAttestationsV2(w http.ResponseWriter, r *http.Request)
consensusAtts := blk.Block().Body().Attestations()

var atts = make([]interface{}, len(consensusAtts))
v := version.String(blk.Block().Version())
v := blk.Block().Version()

if v >= version.String(version.Electra) {
if v >= version.Electra {
for i, att := range consensusAtts {
a, ok := att.(*eth.AttestationElectra)
if ok {
Expand All @@ -257,7 +257,7 @@ func (s *Server) GetBlockAttestationsV2(w http.ResponseWriter, r *http.Request)
}

resp := &structs.GetBlockAttestationsV2Response{
Version: v,
Version: version.String(v),
ExecutionOptimistic: isOptimistic,
Finalized: s.FinalizationFetcher.IsFinalized(ctx, root),
Data: atts,
Expand Down

0 comments on commit a6480ab

Please sign in to comment.