Skip to content

Commit 38dd964

Browse files
MrishoLukambarphmeier
authored andcommitted
docs on Genesis config for Next_Length_Multiplier & Target_Block_Size
1 parent e5e0fb1 commit 38dd964

File tree

1 file changed

+4
-0
lines changed
  • sugondat/chain/pallets/length-fee-adjustment/src

1 file changed

+4
-0
lines changed

sugondat/chain/pallets/length-fee-adjustment/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,14 @@ pub mod pallet {
140140
pub type TargetBlockSize<T: Config> =
141141
StorageValue<_, Perquintill, ValueQuery, TargetBlockSizeDefault>;
142142

143+
/// Genesis config for setting up `NextLengthMultiplier` and `TargetBlockSize` storage.
144+
/// Set None if the default values `NextLengthMultiplierDefault` & `TargetBlockSizeDefault` are to be used.
143145
#[pallet::genesis_config]
144146
#[derive(frame_support::DefaultNoBound)]
145147
pub struct GenesisConfig<T: Config> {
148+
/// Genesis set up for next length multiplier storage item
146149
pub next_length_multiplier: Option<FixedU128>,
150+
/// Genesis set up for target_block_size storage item
147151
pub target_block_size: Option<Perquintill>,
148152
_phantom: PhantomData<T>,
149153
}

0 commit comments

Comments
 (0)