Skip to content

[TIME-TRAVEL] [FEAT] Support capturing 'Env' host variables in snapshots #993

@dotandev

Description

@dotandev

Description

Ledger state is not just contract storage. It also includes protocol version, sequence numbers, and timestamps.

Requirements

  • Extract the current LedgerInfo and Env configuration from the host in simulator/src/state.rs.
  • Store these as a sub-struct HostEnv in the snapshot.
  • Allow detection of changes to these variables (e.g., protocol upgrades during block boundaries).

Acceptance Criteria

  • Env variables are captured alongside storage entries.
  • Snapshot diff can identify changes to ledger parameters.

Estimated File Changes: 2 (simulator/src/types.rs, simulator/src/state.rs)

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions