pub fn with_stream(mut self, destination_subnet: SubnetId, stream: Stream) -> Self {
        let (mut height, mut state) = self.state_manager.take_tip();

        state.modify_streams(|streams| {
            streams.insert(destination_subnet, stream);
        });

        height.inc_assign();
        self.state_manager
            .commit_and_certify(state, height, CertificationScope::Metadata);
        certify_height(&self.state_manager, height);
        self.certified_height = height;

        self
    }
/// Adds a stream to the wrapped state, creates a new checkpoint and
/// certifies it.
Adds a stream to the wrapped state, creates a new checkpoint and
certifies it.
Adds a stream to the wrapped state creates a new checkpoint and certifies it .
pub fn with_stream(mut self, destination_subnet: SubnetId, stream: Stream) -> Self {
        let (mut height, mut state) = self.state_manager.take_tip();
        state.modify_streams(|streams| {
            streams.insert(destination_subnet, stream);
        });
        height.inc_assign();
        self.state_manager
            .commit_and_certify(state, height, CertificationScope::Metadata);
        certify_height(&self.state_manager, height);
        self.certified_height = height;
        self
    }
pub fn with_stream ( mut self , destination_subnet : SubnetId , stream : Stream ) -> Self { let ( mut height , mut state ) = self . state_manager . take_tip ( ) ; state . modify_streams ( | streams | { streams . insert ( destination_subnet , stream ) ; } ) ; height . inc_assign ( ) ; self . state_manager . commit_and_certify ( state , height , CertificationScope :: Metadata ) ; certify_height ( & self . state_manager , height ) ; self . certified_height = height ; self }
Adds a stream to the wrapped state, creates a new checkpoint and
certifies it.
Adds a stream to the wrapped state creates a new checkpoint and certifies it .
mut self
destination_subnet
SubnetId
stream
Stream
mut self
destination_subnet
SubnetId
stream
Stream