From d30401f969c1d87d7f76f5733cd2e96adbffc8d2 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Sat, 9 May 2020 13:44:40 +0200 Subject: [PATCH] Expose BlockHashCount on system metadata constants (#5960) --- frame/system/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frame/system/src/lib.rs b/frame/system/src/lib.rs index 8346b727b254b..7219b0f5180fe 100644 --- a/frame/system/src/lib.rs +++ b/frame/system/src/lib.rs @@ -481,6 +481,9 @@ decl_module! { pub struct Module for enum Call where origin: T::Origin { type Error = Error; + /// The maximum number of blocks to allow in mortal eras. + const BlockHashCount: T::BlockNumber = T::BlockHashCount::get(); + /// The maximum weight of a block. const MaximumBlockWeight: Weight = T::MaximumBlockWeight::get();