0xFableOrg / roll-op

The simplest way to spin your own dev / prod rollup, fully configurable.
BSD 3-Clause Clear License
92 stars 25 forks source link

Validate deploy config against run config #51

Open norswap opened 1 year ago

norswap commented 1 year ago

Roll-op enables you to deploy a rollup (create the genesis file & deploy contracts to L1) and only run it later.

However, since that's two separate commands, you could in theory specify conflicting options to bot. We should store the deploy config (= config specified for deploy) and validate the run config (= config specified to run the rollup) are consistent.

These two configs are allowed to be different! e.g. changing your mind on which ports to bind should affect anything, however, there are options that might be more problematic (TODO: which ones??)

Bonus: currently we don't regenerate the L2 genesis if it exists. We probably always should regenerate it, to avoid the same kind of issue.