Skip to main content

create_checkpoint

Function create_checkpoint 

pub fn create_checkpoint(state: &PortfolioState, up_to_seq: u64) -> Checkpoint
Expand description

Create a Checkpoint from the current portfolio state.

The snapshot is the JSON serialization of PortfolioState. The checkpoint also carries transient retirement markers and terminal attribution so that checkpoint_state_hash (which includes these fields) can be validated after restore.