Companion for new Trie cache (#5897)

* Switch to Substrate branch

* Make everything compile

* Revert "Switch to Substrate branch"

This reverts commit cbbab7431a07cfd645428a9f4c130362a8e7588b.

* Remove stuff

* More fixes

* Fix branch

* Update Substrate

* FMT
This commit is contained in:
Bastian Köcher authored and GitHub committed 2022-08-18 21:35:56 +00:00
1 parent 2e72ae46ec
commit c3404d109d
7 files changed
+243 -236

No files matched your search

-14
View File
@@ -717,20 +717,6 @@ impl pallet_beefy_mmr::Config for Runtime {
type BeefyDataProvider = ParasProvider;
}
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 = 4 * HOURS as u32;
/// Number of headers to keep.
///
/// Assuming the worst case of every header being finalized, we will keep headers at least for a
/// week.
pub const HeadersToKeep: u32 = 7 * DAYS as u32;
}
parameter_types! {
pub const EndingPeriod: BlockNumber = 1 * HOURS;
pub const SampleLength: BlockNumber = 1;