Skip to content

Commit e473d7c

Browse files
rkapkanalepae
andauthored
Use SingleAttestation for Fulu in p2p attestation map (#14809)
* Use `SingleAttestation` for Fulu in p2p attestation map. * Fix `TestExtractDataType`. --------- Co-authored-by: Manu NALEPA <[email protected]>
1 parent 794a05a commit e473d7c

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

beacon-chain/p2p/types/object_mapping.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func InitializeDataMaps() {
123123
return &ethpb.SingleAttestation{}, nil
124124
},
125125
bytesutil.ToBytes4(params.BeaconConfig().FuluForkVersion): func() (ethpb.Att, error) {
126-
return &ethpb.AttestationElectra{}, nil
126+
return &ethpb.SingleAttestation{}, nil
127127
},
128128
}
129129

beacon-chain/sync/decode_pubsub_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ func TestExtractDataType(t *testing.T) {
292292
return wsb
293293
}(),
294294
wantMd: wrapper.WrappedMetadataV1(&ethpb.MetaDataV1{}),
295-
wantAtt: &ethpb.AttestationElectra{},
295+
wantAtt: &ethpb.SingleAttestation{},
296296
wantAggregate: &ethpb.SignedAggregateAttestationAndProofElectra{},
297297
wantErr: false,
298298
},
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### Fixed
2+
3+
- Use `SingleAttestation` for Fulu in p2p attestation map.

0 commit comments

Comments
 (0)