Grandpa Pallet Pruning (#890)

* Pruning.

* Add tests.

* Address review.
This commit is contained in:
Tomasz Drwięga
2021-04-13 17:30:39 +02:00
committed by Bastian Köcher
parent a783775ca5
commit f92449a461
4 changed files with 70 additions and 0 deletions
+2
View File
@@ -81,6 +81,7 @@ impl frame_system::Config for TestRuntime {
parameter_types! {
pub const MaxRequests: u32 = 2;
pub const HeadersToKeep: u32 = 5;
pub const SessionLength: u64 = 5;
pub const NumValidators: u32 = 5;
}
@@ -88,6 +89,7 @@ parameter_types! {
impl grandpa::Config for TestRuntime {
type BridgedChain = TestBridgedChain;
type MaxRequests = MaxRequests;
type HeadersToKeep = HeadersToKeep;
type WeightInfo = ();
}