mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 07:31:02 +00:00
fix bridge hubs blocks interval (#1836)
This commit is contained in:
committed by
Bastian Köcher
parent
f0c4073dc6
commit
7370222802
@@ -17,6 +17,7 @@ bp-messages = { path = "../../primitives/messages", default-features = false }
|
||||
frame-system = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
||||
frame-support = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
||||
sp-api = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
||||
sp-std = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
||||
|
||||
# Polkadot Dependencies
|
||||
polkadot-primitives = { git = "https://github.com/paritytech/polkadot", branch = "master", default-features = false }
|
||||
@@ -29,5 +30,6 @@ std = [
|
||||
"frame-system/std",
|
||||
"frame-support/std",
|
||||
"sp-api/std",
|
||||
"sp-std/std",
|
||||
"polkadot-primitives/std",
|
||||
]
|
||||
|
||||
@@ -29,6 +29,12 @@ use frame_support::{
|
||||
weights::constants,
|
||||
};
|
||||
use frame_system::limits;
|
||||
use sp_std::time::Duration;
|
||||
|
||||
/// Average block interval in Cumulus-based parachains.
|
||||
///
|
||||
/// Corresponds to the `MILLISECS_PER_BLOCK` from `parachains_common` crate.
|
||||
pub const AVERAGE_BLOCK_INTERVAL: Duration = Duration::from_secs(12);
|
||||
|
||||
/// All cumulus bridge hubs allow normal extrinsics to fill block up to 75 percent.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user