increase maximal blokc weight at Millau (#602)

This commit is contained in:
Svyatoslav Nikolsky
2020-12-29 01:43:44 +03:00
committed by Bastian Köcher
parent 8e8e89511f
commit e5716a9e34
+3 -3
View File
@@ -25,7 +25,7 @@ mod millau_hash;
use bp_message_lane::{LaneId, MessageNonce, UnrewardedRelayersState}; use bp_message_lane::{LaneId, MessageNonce, UnrewardedRelayersState};
use bp_runtime::Chain; use bp_runtime::Chain;
use frame_support::{ use frame_support::{
weights::{constants::WEIGHT_PER_MILLIS, DispatchClass, Weight}, weights::{constants::WEIGHT_PER_SECOND, DispatchClass, Weight},
RuntimeDebug, RuntimeDebug,
}; };
use frame_system::limits; use frame_system::limits;
@@ -45,8 +45,8 @@ pub use millau_hash::MillauHash;
/// Maximum weight of single Millau block. /// Maximum weight of single Millau block.
/// ///
/// This represents 0.1 seconds of compute assuming a target block time of six seconds. /// This represents 0.5 seconds of compute assuming a target block time of six seconds.
pub const MAXIMUM_BLOCK_WEIGHT: Weight = 10 * WEIGHT_PER_MILLIS; 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 /// Represents the average portion of a block's weight that will be used by an
/// `on_initialize()` runtime call. /// `on_initialize()` runtime call.