thehubbleproject / hubble-contracts

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

make path of levelDB database configurable #624

Open kautukkundan opened 3 years ago

kautukkundan commented 3 years ago

Problem

Currently the path of levelDB folder is hardcoded. It may not be ideal for every user to keep the same path for the database and they might need to set it somewhere else.

Solution

Add levelDB folder path in the config so that it is easily changeable. Additionally, it'll better to have separate path for DB while running tests so that it doesn't interfere with DB running in production. Right now the tests wipes the contents of levelDB folder completely.