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
26
pub use pallet_bridge_grandpa::Instance1 as WithPangolinGrandpa;

// --- paritytech ---
use pallet_bridge_grandpa::Config;
// --- darwinia-network ---
use crate::{weights::pallet_bridge_grandpa::WeightInfo, *};

frame_support::parameter_types! {
	// This is a pretty unscientific cap.
	//
	// Note that once this is hit the pallet will essentially throttle incoming requests down to one
	// call per block.
	pub const MaxRequests: u32 = 50;
	// Number of headers to keep.
	//
	// Assuming the worst case of every header being finalized, we will keep headers for at least a
	// week.
	pub const HeadersToKeep: u32 = 7 * bp_pangolin::DAYS as u32;
}

impl Config<WithPangolinGrandpa> for Runtime {
	type BridgedChain = bp_pangolin::Pangolin;
	type HeadersToKeep = HeadersToKeep;
	type MaxRequests = MaxRequests;
	type WeightInfo = WeightInfo<Self>;
}