thehubbleproject / hubble-contracts

Hubble optimistic rollup
https://thehubbleproject.github.io/docs/
MIT License
133 stars 28 forks source link

Persist BatchStorage #659

Open jacque006 opened 2 years ago

jacque006 commented 2 years ago

Previously: https://github.com/thehubbleproject/hubble-contracts/issues/548

Problem

BatchStorage is currently implemented in memory and does not maintain state between process crashes/restarts.

Solution

Implement BatchStorage using leveldb to persist batch info and metadata.