Function create_checkpoint
pub fn create_checkpoint(state: &PortfolioState, up_to_seq: u64) -> CheckpointExpand 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.