pub fn new(own_subnet_id: SubnetId, own_subnet_type: SubnetType) -> Self {
        Self {
            own_subnet_id,
            own_subnet_type,
            ingress_history: Default::default(),
            streams: Default::default(),
            generated_id_counter: Default::default(),
            batch_time: UNIX_EPOCH,
            network_topology: Default::default(),
            subnet_call_context_manager: Default::default(),
            own_subnet_features: SubnetFeatures::default(),
            // StateManager populates proper values of these fields before
            // committing each state.
            prev_state_hash: Default::default(),
            state_sync_version: 0,
            certification_version: 0,
            heap_delta_estimate: NumBytes::from(0),
            time_of_last_allocation_charge: UNIX_EPOCH,
        }
    }
/// Creates a new empty system metadata state.
Creates a new empty system metadata state.
Creates a new empty system metadata state .
pub fn new(own_subnet_id: SubnetId, own_subnet_type: SubnetType) -> Self {
        Self {
            own_subnet_id,
            own_subnet_type,
            ingress_history: Default::default(),
            streams: Default::default(),
            generated_id_counter: Default::default(),
            batch_time: UNIX_EPOCH,
            network_topology: Default::default(),
            subnet_call_context_manager: Default::default(),
            own_subnet_features: SubnetFeatures::default(),
            // StateManager populates proper values of these fields before
            // committing each state.
            prev_state_hash: Default::default(),
            state_sync_version: 0,
            certification_version: 0,
            heap_delta_estimate: NumBytes::from(0),
            time_of_last_allocation_charge: UNIX_EPOCH,
        }
    }
pub fn new ( own_subnet_id : SubnetId , own_subnet_type : SubnetType ) -> Self { Self { own_subnet_id , own_subnet_type , ingress_history : Default :: default ( ) , streams : Default :: default ( ) , generated_id_counter : Default :: default ( ) , batch_time : UNIX_EPOCH , network_topology : Default :: default ( ) , subnet_call_context_manager : Default :: default ( ) , own_subnet_features : SubnetFeatures :: default ( ) , // StateManager populates proper values of these fields before // committing each state. prev_state_hash : Default :: default ( ) , state_sync_version : 0 , certification_version : 0 , heap_delta_estimate : NumBytes :: from ( 0 ) , time_of_last_allocation_charge : UNIX_EPOCH , } }
Creates a new empty system metadata state.
Creates a new empty system metadata state .
own_subnet_id
SubnetId
own_subnet_type
SubnetType
own_subnet_id
SubnetId
own_subnet_type
SubnetType