SessionManager
Calls
schedule_session_duration
Attributes
Name |
Type |
start_session |
SessionIndex |
duration |
BlockNumberFor<T> |
Python
call = substrate.compose_call(
'SessionManager', 'schedule_session_duration', {
'duration': 'u32',
'start_session': 'u32',
}
)
Events
ScheduledSessionDuration
Attributes
Name |
Type |
Composition |
block_number |
BlockNumberFor<T> |
u32 |
session_index |
SessionIndex |
u32 |
session_duration |
BlockNumberFor<T> |
u32 |
Storage functions
DurationOffset
Python
result = substrate.query(
'SessionManager', 'DurationOffset', []
)
Return value
'u32'
SessionDuration
Python
result = substrate.query(
'SessionManager', 'SessionDuration', []
)
Return value
'u32'
SessionDurationChanges
Python
result = substrate.query(
'SessionManager', 'SessionDurationChanges', ['u32']
)
Return value
('u32', 'u32')
Errors
EstimateNextSessionFailed
InvalidDuration
InvalidSession