Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

State checkpointing for deployments #287

Open
epociask opened this issue Dec 19, 2024 · 0 comments
Open

State checkpointing for deployments #287

epociask opened this issue Dec 19, 2024 · 0 comments

Comments

@epociask
Copy link

deployment.ts is prescribed as the primary script for performing rollup creator deployments onto mainnet environments. However this script doesn't appear to perform any state checkpoints or backups if failed during execution - meaning that a subsequent invocation would start from the beginning despite real txs having already been executed.

There are few cases that can cause this script to crash arbitrarily after executing some number of txs; e.g:

  • parallel usage of the deployer account somewhere else that causes nonce misaccounting
  • deployer account has insufficient funds after executing
  • execution process crashes arbitrarily

It'd be beneficial to have some programmatic countermeasures in place to mitigate this risk; e.g:

  • state checkpointing that dumps deployed artifacts up-to the failure point
  • migrating the deployment script to using forge instead

cc @0x0aa0

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

No branches or pull requests

1 participant