Build a node and sync from block 900k gaia-8001 (backup file)


#1

hello, i just made a backup file and the steps for sync from block +900k. in gaia -8001

Build the node first Time like=

#Install go
wget -c 'https://dl.google.com/go/go1.10.3.linux-amd64.tar.gz' -O go1.10.3.linux-amd64.tar.gz

sudo tar -C /usr/local -xzf go1.10.3.linux-amd64.tar.gz

sudo rm -Rf go1.10.3.linux-amd64.tar.gz

#Set gopath
 vi $HOME/.profile

#Add this lines to your file:
PATH="$PATH:/usr/local/go/bin"
GOPATH="$HOME/go"
PATH="$PATH:$GOROOT/bin:$GOPATH/bin"


#reload profile

source $HOME/.profile

#Download Cosmos 

go get github.com/cosmos/cosmos-sdk

cd go/src/github.com/cosmos/cosmos-sdk


git fetch --tags
git checkout v0.24.1
make get_vendor_deps  && make install

gaia init --name validatorian name


cd .gaiad/data

#If -bash: cd: data: Permission denied = 
sudo chown user:group data

#Remove default genesis file and down the good for gaia-8001. (today)

rm genesis.json

Get the good.
wget -c 'https://raw.githubusercontent.com/cosmos/testnets/master/gaia-8001/genesis.json '


#Add seed nodes and persistent peers to config.toml and verify your Validatorian name is ok.

vi config.toml

seeds = “7c8b8fd03577cd4817f5be1f03d506f879df98d8@gaia-seed1.interblock.io:26656, a28737ff02391a6e00a1d3b79befd57e68e8264c@gaia-seed2.interblock.io:26656, 987ffd26640cd03d08ed7e53b24dfaa7956e612d@gaia-seed3.interblock.io:26656,837ab35ee80e6882da08ab6244ef27538e73aedd@gaia-seed4.interblock.io:26656”


gaiad start

wait for the blocks sync, (see you are in gaia-8001 ok)

stop gaiad


cd .gaiad 

sudo rm -r data/*

cd

wget -c 'https://gateway.ipfs.io/ipfs/QmW9DagwBMhka5B8cERcVCrrB3NMKXStXPnAr2uNewX4or' -O data.tar.gz

tar -xzf data.tar.gz

cp -r data/* $HOME/.gaiad/data

rm -rf data

rm data.tar.gz

start gaiad

have to start in the block +900k

here have to sync from block +900k.


After stop the first time , node sync block 100
Then rm the data and dump the backup file, like in the instrutions
have to sync from block +900k

if follow the steps all is working well.

My IPFS node works fine, this is the normal time to download the file.

For that if see the download is slow. stop and start again.

Enjoy.


Build Cosmos Docker and upload to Docker-Hub for run in any machine
Run Cosmos with Docker 2 cmd (no need Install Cosmos)
Donwload Cosmos and Build and run your own Official Cosmos-Docker-Container locally