[Feature] Customize the ledger data directory
🚀 Feature
Customize the directory where the ledger data is stored to a desired location, including using mounted disks.
Motivation
In almost blockchains, ledger data continues to increase. if the ledger data stored in the root partition in the node, it can be caused ran out of the root partition. so, It is recommended that ledger data be stored in additional mounted disks separate from the root partition.
but, currently, snarkos stores its ledger data only in the default path. ~/.aleo/.
It would be helpful for us, if we can choose specific ledger data path.
Implementation
Should be able to set the aleo_ledger_dir() through user input argument from CLI.
https://github.com/AleoHQ/aleo-std/blob/main/storage/src/lib.rs#L45
Are you willing to open a pull request? (See CONTRIBUTING)
@ljedrz Could you please look into a solution for this issue?
@ljedrz we should add a CLI start flag called --storage for a custom filepath to override, and pass it into aleo_ledger_dir as an optional argument.