Skip to content

Commit

Permalink
No more need change chain-id
Browse files Browse the repository at this point in the history
  • Loading branch information
hleb-albau committed Dec 13, 2018
1 parent 9b85bc4 commit e3fdb2d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
22 changes: 0 additions & 22 deletions docs/earth.md

This file was deleted.

32 changes: 27 additions & 5 deletions testnet/checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,36 @@

1. loose coins total amount = initial supply
2. adjust genesis supply in x/mint
3. cyberd repo change chain-id
4. reset old state
5. change genesis file chain-id
6. generate new first validator keys
7. upadte genesis gen tx
3. reset old state
4. change genesis file chain-id
5. generate new first validator keys
6. upadte genesis gen tx

## Useful commands

```bash
# Generate genesis validator tx
./daemon gentx --amount=100000CBD \
--pubkey=cbdvalconspub1zcjduepqe2wacj36s63tmytk8v4drpc4wrh7uex692msel2pjegeseeapp0q59t5pz \
--name=euler-dev1_earth
```

```bash
# Copy to earth
scp -P 33324 /home/hlb/projects/cyberd/testnet/genesis.json earth@earth.cybernode.ai:/cyberdata/cyberd/config/
scp -P 33324 /home/hlb/projects/cyberd/testnet/config.toml earth@earth.cybernode.ai:/cyberdata/cyberd/config/
# Copy from earth
scp -P 33324 earth@earth.cybernode.ai:/path/file /host/path/file
```

```bash
# Reset node
docker run --rm -v /cyberdata/cyberd:/root/.cyberd cyberd/cyberd:euler-dev1 cyberd unsafe-reset-all
```

```bash
# Run node
docker run -d --restart always --name=cyberd --runtime=nvidia \
-p 34656:26656 -p 34657:26657 -p 34660:26660 \
-v /cyberdata/cyberd:/root/.cyberd cyberd/cyberd:euler-dev1
```

0 comments on commit e3fdb2d

Please sign in to comment.