pub fn simulate_extend_ttl_op(
    snapshot_source: &impl SnapshotSource,
    network_config: &NetworkConfig,
    adjustment_config: &SimulationAdjustmentConfig,
    ledger_info: &LedgerInfo,
    keys_to_extend: &[LedgerKey],
    extend_to: u32,
) -> Result<ExtendTtlOpSimulationResult>
Expand description

Simulates ExtendFootprintTtlOp operation specified via its relevant payload parts.

The operation is defined by the keys_to_extend and the extend_to. The TTL for the provided keys will be extended to become ledger_info.sequence_number + extend_to. Entries that don’t exist in the snapshot_source and entries that already have TTL bigger than the requested extension will be ignored and excluded from the simulation results.

The rest of parameters define the ledger state (snapshot_source, network_config, ledger_info) and simulation adjustment configuration (adjustment_config).

This may only return error in case if ledger is mis-configured.