@@ -487,10 +487,14 @@ mod tests {
487487 pallet_bridge_messages:: weights:: BridgeWeight < rialto_runtime:: Runtime > ;
488488
489489 #[ test]
490- fn select_delivery_transaction_limits_works ( ) {
490+ fn select_delivery_transaction_limits_is_sane ( ) {
491+ // we want to check the `proof_size` component here too. But for Rialto and Millau
492+ // it is set to `u64::MAX` (as for Polkadot and other relay/standalone chains).
493+ // So let's use RialtoParachain limits here - it has `proof_size` limit as all
494+ // Cumulus-based parachains do.
491495 let ( max_count, max_weight) =
492496 select_delivery_transaction_limits :: < RialtoToMillauMessagesWeights > (
493- bp_millau :: Millau :: max_extrinsic_weight ( ) ,
497+ bp_rialto_parachain :: RialtoParachain :: max_extrinsic_weight ( ) ,
494498 bp_rialto:: MAX_UNREWARDED_RELAYERS_IN_CONFIRMATION_TX ,
495499 ) ;
496500 assert_eq ! (
@@ -500,13 +504,7 @@ mod tests {
500504 // i.e. weight reserved for messages dispatch allows dispatch of non-trivial messages.
501505 //
502506 // Any significant change in this values should attract additional attention.
503- //
504- // TODO: https://github.com/paritytech/parity-bridges-common/issues/1543 - the `proof_size`
505- // component is too large here!
506- (
507- 1024 ,
508- Weight :: from_ref_time( 216_600_106_667 ) . set_proof_size( 7_993_589_098_607_472_367 )
509- ) ,
507+ ( 1024 , Weight :: from_parts( 866_600_106_667 , 2_271_915 ) ) ,
510508 ) ;
511509 }
512510}
0 commit comments