Use zstd to compress testnet state file (#12)
Part of https://www.notion.so/Create-stacks-for-mainnet-1f2a6b22d4728034be4be2c51decf94e Co-authored-by: IshaVenikar <ishavenikar7@gmail.com> Reviewed-on: #12 Co-authored-by: ishavenikar <ishavenikar@noreply.git.vdb.to> Co-committed-by: ishavenikar <ishavenikar@noreply.git.vdb.to>
This commit was merged in pull request #12.
This commit is contained in:
co-authored by
IshaVenikar
parent
6733aa7318
commit
7a94eb2a03
+6
-6
@@ -9,13 +9,13 @@
|
||||
```bash
|
||||
cargo install tmkms --features=softsign --version=0.14.0
|
||||
```
|
||||
- Install `gzip` using `sudo apt install gzip`
|
||||
- testnet-state.gz ([exported testnet state](./run-first-validator.md#export-testnet-state))
|
||||
- Install `zstd` using `sudo apt install zstd`
|
||||
- testnet-state.zst ([exported testnet state](./run-first-validator.md#export-testnet-state))
|
||||
- LPS distribution Google spreadsheet URL or CSV file path
|
||||
|
||||
## Steps
|
||||
|
||||
- In current working directory demo, keep exported `testnet-state.gz` file from prerequisites
|
||||
- In current working directory demo, keep exported `testnet-state.zst` file from prerequisites
|
||||
|
||||
- Fetch stack:
|
||||
|
||||
@@ -40,10 +40,10 @@
|
||||
- Extract the testnet-state JSON file
|
||||
|
||||
```
|
||||
gzip -dc $CWD/testnet-state.gz > $CWD/testnet-state.json
|
||||
zstd -dc $CWD/testnet-state.zst > $CWD/testnet-state.json
|
||||
|
||||
# Remove zip folder
|
||||
rm -rf testnet-state.gz
|
||||
# Remove zst folder
|
||||
rm -rf testnet-state.zst
|
||||
```
|
||||
|
||||
- Set envs:
|
||||
|
||||
Reference in New Issue
Block a user