Skip to content

Commit c44b5e6

Browse files
jacogremostov
authored andcommitted
Expose BlockHashCount on system metadata constants (paritytech#5960)
1 parent 776de72 commit c44b5e6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

frame/system/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,9 @@ decl_module! {
481481
pub struct Module<T: Trait> for enum Call where origin: T::Origin {
482482
type Error = Error<T>;
483483

484+
/// The maximum number of blocks to allow in mortal eras.
485+
const BlockHashCount: T::BlockNumber = T::BlockHashCount::get();
486+
484487
/// The maximum weight of a block.
485488
const MaximumBlockWeight: Weight = T::MaximumBlockWeight::get();
486489

0 commit comments

Comments
 (0)