To resolve the block height issue

Resolve handshake and syncing issue

(A) Windows

  1. Open gitbash as a administrator and navigate to script path which should be similar to this : $GOPATH/src/github.com/scripttoken/script or type cd go/src/github.com/scripttoken/script

  2. close the running sesssion of node.

  3. Now switch to db path ,

cd ../scriptnet/node/

  1. Remove the existing and download the synced db binaries

rm -rf snapshot

curl https://scripttv.s3.eu-central-1.amazonaws.com/ablockchain-backup/snapshot.zip

rm -rf db

curl https://scripttv.s3.eu-central-1.amazonaws.com/ablockchain-backup/db.zip

unzip db.zip

  1. Switch to "bin" directory i.e $GOPATH/bin/ where your binary has been generated using the above command. Navigate to the bin folder by typing β€œcd $GOPATH/bin”.

  2. Atlast run your node as it was running earlier.

(B) Ubuntu

  1. Open terminal and navigate to script path which should be similar to this : $GOPATH/src/github.com/scripttoken/script

  2. close the running sesssion of node.

  3. Now switch to db path ,

cd ../scriptnet/node/

  1. Remove the existing and download the synced db binaries

rm -rf snapshot

wget https://scripttv.s3.eu-central-1.amazonaws.com/ablockchain-backup/snapshot.zip

rm -rf db

wget https://scripttv.s3.eu-central-1.amazonaws.com/ablockchain-backup/db.zip

unzip db.zip

  1. switch to script path

cd ../../script

make install

sudo chmod -R 777 /usr/local/go

  1. Atlast run your node as it was running earlier.

(C) MAC

  1. Open terminal and navigate to script path which should be similar to this : $GOPATH/src/github.com/scripttoken/script

  2. close the running sesssion of node.

  3. Now switch to db path ,

cd ../scriptnet/node/

  1. Remove the existing and download the synced db binaries

rm -rf snapshot

wget https://scripttv.s3.eu-central-1.amazonaws.com/ablockchain-backup/snapshot.zip

rm -rf db

wget https://scripttv.s3.eu-central-1.amazonaws.com/ablockchain-backup/db.zip

unzip db.zip

  1. switch to script path

cd ../../script

make install

sudo chmod -R 777 /usr/local/go

  1. Atlast run your node as it was running earlier.

Last updated