create_safety_rules

Function create_safety_rules 

Source
pub fn create_safety_rules(
    config: &SafetyRulesConfig,
    author: PeerId,
    consensus_private_key: ConsensusPrivateKey,
    vrf_private_key: Option<ConsensusVRFPrivateKey>,
    export_consensus_key: bool,
) -> SafetyRules
Expand description

Create a SafetyRules instance.

The author and keys are threaded directly from the runtime rather than read from SafetyRulesConfig, because they’re always overwritten from Conflux-side config at startup.