From 719a327865f1a733a6935e5ed7689835410c8283 Mon Sep 17 00:00:00 2001 From: Svyatoslav Nikolsky Date: Tue, 29 Dec 2020 01:43:44 +0300 Subject: [PATCH] increase maximal blokc weight at Millau (#602) --- bridges/primitives/millau/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bridges/primitives/millau/src/lib.rs b/bridges/primitives/millau/src/lib.rs index 38cbf37a4b4e1..daef9abf2fc46 100644 --- a/bridges/primitives/millau/src/lib.rs +++ b/bridges/primitives/millau/src/lib.rs @@ -25,7 +25,7 @@ mod millau_hash; use bp_message_lane::{LaneId, MessageNonce, UnrewardedRelayersState}; use bp_runtime::Chain; use frame_support::{ - weights::{constants::WEIGHT_PER_MILLIS, DispatchClass, Weight}, + weights::{constants::WEIGHT_PER_SECOND, DispatchClass, Weight}, RuntimeDebug, }; use frame_system::limits; @@ -45,8 +45,8 @@ pub use millau_hash::MillauHash; /// Maximum weight of single Millau block. /// -/// This represents 0.1 seconds of compute assuming a target block time of six seconds. -pub const MAXIMUM_BLOCK_WEIGHT: Weight = 10 * WEIGHT_PER_MILLIS; +/// This represents 0.5 seconds of compute assuming a target block time of six seconds. +pub const MAXIMUM_BLOCK_WEIGHT: Weight = WEIGHT_PER_SECOND / 2; /// Represents the average portion of a block's weight that will be used by an /// `on_initialize()` runtime call.