MystenLabs / sui

Sui, a next-generation smart contract platform with high throughput, low latency, and an asset-oriented programming model powered by the Move programming language
https://sui.io
Apache License 2.0
5.84k stars 11.06k forks source link

Feature Request: Save disk space and computational power by lazy processing #16187

Open James4Ever0 opened 4 months ago

James4Ever0 commented 4 months ago

I want to use smart contract feature and account system in my local computer, without network connection. So I run the follwing code:

sui genesis -f --with-faucet
sui-test-validator --config-dir ~/.sui/sui-config

I quickly discover the folder at ~/.sui/ is growing pretty big now.

I want to have a account system with smart contract capability, zero transaction fee and infinite currency supply, locally, and will only consume more disk space & computational power on transaction.

Notice: configuration suggested to be "most disk saving" does not help at all. The disk space will still increase monotonically.

johnjmartin commented 4 months ago

One way to save on disk space would be to increase the duration between epochs when you run sui-test-validator: https://github.com/MystenLabs/sui/blob/main/docs/content/guides/developer/getting-started/local-network.mdx#L26-L27

James4Ever0 commented 4 months ago

One way to save on disk space would be to increase the duration between epochs when you run sui-test-validator: https://github.com/MystenLabs/sui/blob/main/docs/content/guides/developer/getting-started/local-network.mdx#L26-L27

However this does not save disk space when idle.

github-actions[bot] commented 2 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.