Pārlūkot izejas kodu

runtime: staking-handler: Add comments.

Shamil Gadelshin 4 gadi atpakaļ
vecāks
revīzija
c8c194653a
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. 6 0
      runtime-modules/staking-handler/src/lib.rs

+ 6 - 0
runtime-modules/staking-handler/src/lib.rs

@@ -1,3 +1,8 @@
+//! Staking handler module.
+//! Contains StakingHandler trait and its implementation - StakingManager.
+//! StakingHandler is responsible for staking logic in the Joystream runtime:
+//! https://joystream.gitbook.io/joystream-handbook/key-concepts/staking
+
 // Ensure we're `no_std` when compiling for Wasm.
 #![cfg_attr(not(feature = "std"), no_std)]
 
@@ -121,6 +126,7 @@ impl<
         Ok(())
     }
 
+    // Membership support for staking accounts required.
     fn is_member_staking_account(_member_id: &MemberId<T>, _account_id: &T::AccountId) -> bool {
         true
     }