snarkOS icon indicating copy to clipboard operation
snarkOS copied to clipboard

[Feature] Customize the ledger data directory

Open heejin-github opened this issue 2 years ago • 2 comments

🚀 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)

heejin-github avatar Nov 26 '23 12:11 heejin-github

@ljedrz Could you please look into a solution for this issue?

heejin-github avatar Nov 26 '23 12:11 heejin-github

@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.

howardwu avatar Nov 26 '23 19:11 howardwu