espresso-sequencer
espresso-sequencer copied to clipboard
feat: Add state reconstruction tests
feat: Add state reconstruction tests
Closes #3177
This PR:
- Adds tests for state reconstruction in two scenarios:
- Node starting with PoS version
- Node upgrading from fee version to PoS version
- Detects and validates proper state reconstruction after node restarts
- Ensures version transitions are correctly maintained
Key places to review:
- tests/state_reconstruction.rs - New test module implementing both test cases
- tests/main.rs - Updated to include new state_reconstruction module
Things tested
- Compilation and linting of tests directory
- Both test cases compile without warnings using clippy