Skip to content
No description, website, or topics provided.
Python Dockerfile Shell
Branch: master
Clone or download
OWEE
Latest commit c6b2b17 Sep 24, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Dockerfile Pushing fix Sep 24, 2019
README.md Pushing fix Sep 24, 2019
build-gaiadebug.sh Pushing fix Sep 24, 2019
exported-hub3.json Pushing fix Sep 24, 2019
genesis.json Pushing fix Sep 24, 2019
reformat.py Corrected typo Sep 24, 2019

README.md

cosmoshub-3

Step 0. Build Docker

./build-gaiadebug.sh v2.0.1

Step 1. Verify migrated genesis.json

jq -S -c -M '' exported-hub3.json | shasum -a 256

> 3b38465931f57b004cef4196c77d8fd4d78c6a7ea1d0d23dc784ce65b7856a09

Step 2. Run Reformat Script

python3 reformat.py  exported-hub3.json

jq -S -c -M '' genesis.json | shasum -a 256

> d2ef50819991406f264d8c20a1ab5aad1a41a2c874883b59182ee9c327a5b2a8

Step 3a. Test New Genesis.json (Skip if already have node)

# Make Node Folder
mkdir -p node/

# Run Init
docker run --rm -it \
  -w /app \
  --mount type=bind,src=$PWD/node,dst=/app \
  --entrypoint="gaiad" \
  cosmos-gaiadebug:v2.0.1 init testnode \
  --chain-id cosmoshub-3 \
  --home /app
# Copy Over genesis.json
sudo cp genesis.json node/config/genesis.json

Step 3b. For Existing Nodes

docker run --rm -it \
  -w /app \
  --mount type=bind,src=$PWD/node,dst=/app \
  --entrypoint="gaiad" \
  cosmos-gaiadebug:v2.0.1 unsafe-reset-all \
  --home /app

Step 4 Start the Chain

docker run --rm -it \
  -w /app \
  --mount type=bind,src=$PWD/node,dst=/app \
  --entrypoint="gaiad" \
  cosmos-gaiadebug:v2.0.1 start \
  --home /app
You can’t perform that action at this time.