planetarium / libplanet

Blockchain in C#/.NET for on-chain, decentralized gaming
https://docs.libplanet.io/
GNU Lesser General Public License v2.1
506 stars 142 forks source link

Open RocksDB store with ReadOnly mode #2443

Closed U-lis closed 1 year ago

U-lis commented 1 year ago

To enhance development (in this case, especially debug) experience, It'll be great to open local Headless node without tons of snapshot files. To achieve this, I'm planning to share historical block and tx data using NFS and symlink to save our 100+GB disk space. The remaining hurdle in doing this is for Headless to open the RocksDB to validate the genesis block and create a lock. Opening RocksDB in read-only mode can solve this problem, for this I want to add read-only mode to Libplanet. After this job is done, Libplanet will take an optional argument so that it can open RocksDB in read-only mode if necessary. It is up to the reader which one to make read-only.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.