Skip to content

feat: scenario snapshot/restore to skip redeployment#495

Closed
vbuilder69420 wants to merge 1 commit intoflashbots:mainfrom
vbuilder69420:feat/scenario-snapshot-restore
Closed

feat: scenario snapshot/restore to skip redeployment#495
vbuilder69420 wants to merge 1 commit intoflashbots:mainfrom
vbuilder69420:feat/scenario-snapshot-restore

Conversation

@vbuilder69420
Copy link
Copy Markdown
Contributor

Summary

  • Add contender snapshot subcommand to save deployed contract state after setup
  • Add --from-snapshot flag to contender spam to restore state and skip setup
  • Enables fast iteration for A/B benchmarking by eliminating redundant setup

Closes #482

Test plan

  • Verify cargo check passes
  • Run contender snapshot to export state after setup
  • Run contender spam --from-snapshot to verify it skips setup and spams correctly
  • Existing tests pass

🤖 Generated with Claude Code

Add `contender snapshot` subcommand that exports deployed contract
addresses (named_txs) from the DB to a JSON file after setup, and
`--from-snapshot` flag on `contender spam` that loads addresses back
into the DB and skips setup. This eliminates redundant contract
deployment overhead when running multiple A/B benchmark iterations.

Closes flashbots#482

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@zeroXbrock
Copy link
Copy Markdown
Member

see comment: #482 (comment)

@zeroXbrock zeroXbrock closed this Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: Scenario snapshot/restore to skip redeployment

2 participants