Skip to content

Commit

Permalink
Use SingleAttestation for Fulu in p2p attestation map (#14809)
Browse files Browse the repository at this point in the history
* Use `SingleAttestation` for Fulu in p2p attestation map.

* Fix `TestExtractDataType`.

---------

Co-authored-by: Manu NALEPA <enalepa@offchainlabs.com>
  • Loading branch information
rkapka and nalepae authored Jan 20, 2025
1 parent 794a05a commit e473d7c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion beacon-chain/p2p/types/object_mapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func InitializeDataMaps() {
return &ethpb.SingleAttestation{}, nil
},
bytesutil.ToBytes4(params.BeaconConfig().FuluForkVersion): func() (ethpb.Att, error) {
return &ethpb.AttestationElectra{}, nil
return &ethpb.SingleAttestation{}, nil
},
}

Expand Down
2 changes: 1 addition & 1 deletion beacon-chain/sync/decode_pubsub_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ func TestExtractDataType(t *testing.T) {
return wsb
}(),
wantMd: wrapper.WrappedMetadataV1(&ethpb.MetaDataV1{}),
wantAtt: &ethpb.AttestationElectra{},
wantAtt: &ethpb.SingleAttestation{},
wantAggregate: &ethpb.SignedAggregateAttestationAndProofElectra{},
wantErr: false,
},
Expand Down
3 changes: 3 additions & 0 deletions changelog/radek_fulu-object-mapping.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Fixed

- Use `SingleAttestation` for Fulu in p2p attestation map.

0 comments on commit e473d7c

Please sign in to comment.