@@ -387,21 +387,6 @@ impl pallet_bridge_relayers::Config for Runtime {
387387 type WeightInfo = ( ) ;
388388}
389389
390- parameter_types ! {
391- /// Number of headers to keep.
392- ///
393- /// Assuming the worst case of every header being finalized, we will keep headers at least for a
394- /// day.
395- pub const HeadersToKeep : u32 = bp_rialto:: DAYS ;
396- /// Maximal number of authorities at Rialto.
397- pub const MaxAuthoritiesAtRialto : u32 = bp_rialto:: MAX_AUTHORITIES_COUNT ;
398- }
399-
400- parameter_types ! {
401- /// Maximal number of authorities at Westend.
402- pub const MaxAuthoritiesAtWestend : u32 = bp_westend:: MAX_AUTHORITIES_COUNT ;
403- }
404-
405390pub type RialtoGrandpaInstance = ( ) ;
406391impl pallet_bridge_grandpa:: Config for Runtime {
407392 type BridgedChain = bp_rialto:: Rialto ;
@@ -410,19 +395,15 @@ impl pallet_bridge_grandpa::Config for Runtime {
410395 // Note that once this is hit the pallet will essentially throttle incoming requests down to one
411396 // call per block.
412397 type MaxRequests = ConstU32 < 50 > ;
413- type HeadersToKeep = HeadersToKeep ;
414- type MaxBridgedAuthorities = MaxAuthoritiesAtRialto ;
415-
398+ type HeadersToKeep = ConstU32 < { bp_rialto:: DAYS } > ;
416399 type WeightInfo = pallet_bridge_grandpa:: weights:: BridgeWeight < Runtime > ;
417400}
418401
419402pub type WestendGrandpaInstance = pallet_bridge_grandpa:: Instance1 ;
420403impl pallet_bridge_grandpa:: Config < WestendGrandpaInstance > for Runtime {
421404 type BridgedChain = bp_westend:: Westend ;
422405 type MaxRequests = ConstU32 < 50 > ;
423- type HeadersToKeep = HeadersToKeep ;
424- type MaxBridgedAuthorities = MaxAuthoritiesAtWestend ;
425-
406+ type HeadersToKeep = ConstU32 < { bp_westend:: DAYS } > ;
426407 type WeightInfo = pallet_bridge_grandpa:: weights:: BridgeWeight < Runtime > ;
427408}
428409
@@ -521,7 +502,7 @@ impl pallet_bridge_parachains::Config<WithRialtoParachainsInstance> for Runtime
521502 type ParasPalletName = RialtoParasPalletName ;
522503 type ParaStoredHeaderDataBuilder =
523504 SingleParaStoredHeaderDataBuilder < bp_rialto_parachain:: RialtoParachain > ;
524- type HeadsToKeep = HeadersToKeep ;
505+ type HeadsToKeep = ConstU32 < 1024 > ;
525506 type MaxParaHeadDataSize = MaxRialtoParaHeadDataSize ;
526507}
527508
@@ -534,7 +515,7 @@ impl pallet_bridge_parachains::Config<WithWestendParachainsInstance> for Runtime
534515 type BridgesGrandpaPalletInstance = WestendGrandpaInstance ;
535516 type ParasPalletName = WestendParasPalletName ;
536517 type ParaStoredHeaderDataBuilder = SingleParaStoredHeaderDataBuilder < bp_westend:: Westmint > ;
537- type HeadsToKeep = HeadersToKeep ;
518+ type HeadsToKeep = ConstU32 < 1024 > ;
538519 type MaxParaHeadDataSize = MaxWestendParaHeadDataSize ;
539520}
540521
0 commit comments