1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
use sp_runtime::Perbill;
use crate::*;
use darwinia_ecdsa_authority::Config;
use darwinia_message_gadget::MessageRootGetter;
frame_support::parameter_types! {
pub const ChainId: &'static [u8] = b"45";
pub const MaxPendingPeriod: BlockNumber = 100;
pub const SignThreshold: Perbill = Perbill::from_percent(60);
pub const SyncInterval: BlockNumber = 10;
}
static_assertions::const_assert!(SyncInterval::get() < MaxPendingPeriod::get());
impl Config for Runtime {
type ChainId = ChainId;
type Event = Event;
type MaxAuthorities = ConstU32<3>;
type MaxPendingPeriod = MaxPendingPeriod;
type MessageRoot = MessageRootGetter<Self>;
type SignThreshold = SignThreshold;
type SyncInterval = SyncInterval;
type WeightInfo = ();
}