cartesi / machine-emulator

The off-chain implementation of the Cartesi Machine
GNU Lesser General Public License v3.0
58 stars 32 forks source link

feat: add new runtime option to skip storing machine root hash #205

Closed edubart closed 3 months ago

edubart commented 4 months ago

I needed this feature to speed up development/testing until we have a faster way to save/load merkle tree root hashes without doing whole computation all the time, it should not be used in production, it is complementary to the --skip-root-hash-check runtime option.

This is also useful when saving snapshots in WASM environment, machine root hash computation takes forever there, and storing machine snapshots in WASM is useful to save the state of the machine locally to later be resumed.