Add steps to compress testnet state JSON file (#11)
Part of https://www.notion.so/Create-stacks-for-mainnet-1f2a6b22d4728034be4be2c51decf94e Co-authored-by: IshaVenikar <ishavenikar7@gmail.com> Reviewed-on: #11 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 #11.
This commit is contained in:
co-authored by
IshaVenikar
parent
48939ffbd7
commit
6733aa7318
+12
-2
@@ -9,12 +9,13 @@
|
||||
```bash
|
||||
cargo install tmkms --features=softsign --version=0.14.0
|
||||
```
|
||||
- testnet-state.json ([exported testnet state](./run-first-validator.md#export-testnet-state))
|
||||
- Install `gzip` using `sudo apt install gzip`
|
||||
- testnet-state.gz ([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.json` file from prerequisites
|
||||
- In current working directory demo, keep exported `testnet-state.gz` file from prerequisites
|
||||
|
||||
- Fetch stack:
|
||||
|
||||
@@ -36,6 +37,15 @@
|
||||
export CWD=$(pwd)
|
||||
```
|
||||
|
||||
- Extract the testnet-state JSON file
|
||||
|
||||
```
|
||||
gzip -dc $CWD/testnet-state.gz > $CWD/testnet-state.json
|
||||
|
||||
# Remove zip folder
|
||||
rm -rf testnet-state.gz
|
||||
```
|
||||
|
||||
- Set envs:
|
||||
|
||||
```bash
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
- [ansible](playbooks/README.md#ansible-installation)
|
||||
- [laconic-so](https://github.com/cerc-io/stack-orchestrator/?tab=readme-ov-file#install)
|
||||
- LPS distribution Google spreadsheet URL or CSV file path
|
||||
- Install `gzip` using `sudo apt install gzip`
|
||||
|
||||
## Export testnet state
|
||||
|
||||
@@ -34,7 +35,7 @@
|
||||
~/cerc/laconicd-stack/scripts/export-testnet-state.sh <absolute-path-to-testnet-deployment>
|
||||
```
|
||||
|
||||
- The file will be generated in `<absolute-path-to-testnet-deployment>/export/testnet-state.json`
|
||||
- The compressed gzip will be generated at `<absolute-path-to-testnet-deployment>/export/testnet-state.gz`
|
||||
|
||||
## Generate mainnet genesis file
|
||||
|
||||
@@ -44,7 +45,16 @@
|
||||
laconic-so fetch-stack git.vdb.to/cerc-io/laconicd-stack --git-ssh --pull
|
||||
```
|
||||
|
||||
- Copy over the exported `testnet-state.json` file to target machine
|
||||
- Copy over compressed `testnet-state.gz` file to target machine
|
||||
|
||||
- Extract the testnet-state JSON file
|
||||
|
||||
```
|
||||
gzip -dc <path-to-compressed-file>/testnet-state.gz > testnet-state.json
|
||||
|
||||
# Remove zip folder
|
||||
rm -rf <path-to-compressed-file>/testnet-state.gz
|
||||
```
|
||||
|
||||
- Generate LPS lockup distribution JSON file
|
||||
|
||||
|
||||
Reference in New Issue
Block a user