From c298b613755ee4bb13290386b84f2e87cb44f46b 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) --- substrate/frame/system/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/substrate/frame/system/src/lib.rs b/substrate/frame/system/src/lib.rs index 8346b727b2..7219b0f518 100644 --- a/substrate/frame/system/src/lib.rs +++ b/substrate/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();