mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 21:38:05 -05:00
don't change again unecessarily (#11645)
* don't change again unecessarily * remove blinded blocks from gossip
This commit is contained in:
@@ -28,8 +28,7 @@ func (s *Service) forkWatcher() {
|
||||
}
|
||||
|
||||
// from Bellatrix Epoch, the MaxGossipSize and the MaxChunkSize is changed to 10Mb.
|
||||
if currEpoch == params.BeaconConfig().BellatrixForkEpoch ||
|
||||
currEpoch == params.BeaconConfig().CapellaForkEpoch {
|
||||
if currEpoch == params.BeaconConfig().BellatrixForkEpoch {
|
||||
encoder.SetMaxGossipSizeForBellatrix()
|
||||
encoder.SetMaxChunkSizeForBellatrix()
|
||||
}
|
||||
|
||||
@@ -61,8 +61,6 @@ func init() {
|
||||
GossipTypeMapping[reflect.TypeOf(ðpb.SignedBeaconBlockAltair{})] = BlockSubnetTopicFormat
|
||||
// Specially handle Bellatrix objects.
|
||||
GossipTypeMapping[reflect.TypeOf(ðpb.SignedBeaconBlockBellatrix{})] = BlockSubnetTopicFormat
|
||||
GossipTypeMapping[reflect.TypeOf(ðpb.SignedBlindedBeaconBlockBellatrix{})] = BlockSubnetTopicFormat
|
||||
// Specially handle Capella objects
|
||||
GossipTypeMapping[reflect.TypeOf(ðpb.SignedBeaconBlockCapella{})] = BlockSubnetTopicFormat
|
||||
GossipTypeMapping[reflect.TypeOf(ðpb.SignedBlindedBeaconBlockCapella{})] = BlockSubnetTopicFormat
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user