Skip to main content

start_of_sr_round

Function start_of_sr_round 

Source
fn start_of_sr_round(consensus: &MdConsensus) -> Result<SystemTime>
Expand description

Return the start time of the current SR protocol run of the specified consensus.

If a full SR protocol run is 24 hours, this function returns the start of the UTC day containing the valid-after timestamp of the consensus.

Corresponds to C Tor’s sr_state_get_start_time_of_current_protocol_run().