Updating Creditcoin Nodes

We recommend using the latest production images for better mining experience. Also, you can take advantage of a snapshot to upstart your syncing process.

Update Creditcoin Images

  1. Stop your existing docker containers:

$ docker-compose -f [path to docker-compose file] down

2. Run the following commands:

$ docker-compose -f [path to docker-compose file] pull

3. Start your existing docker containers:

$ docker-compose -f [path to docker-compose file] up

Have a Problem Updating?

check if your images in your .yaml file(s) are set to these:

gluwa/creditcoin-client:latest
gluwa/creditcoin-validator:latest
gluwa/creditcoin-processor:latest

Download Snapshot

We strongly recommend using the published blockchain snapshot to avoid any potential problems. Use this torrent file or magnet link address below to download the snapshot. You can also download it directly here.

Magnet Link:

magnet:?xt=urn:btih:4d74485117a091a9088a34d5e931cbf1a0986551&dn=creditcoin-block-volume.tar.gz&tr=udp%3a%2f%2ftracker.opentrackr.org%3a1337%2fannounce&tr=udp%3a%2f%2ftracker.openbittorrent.com%3a80

Timestamp: July 10, 2020 9:46 PM UTC

File Name: creditcoin-block-volume.tar.gz

Latest Block: 513,815

SHA-256 Hash: 9BF2542F72F913AACDEE82CD6B2FFC3AD09E78D4662DDCAD865816CA425F0AE1

Use Snapshot

Linux

  1. Stop the node sudo docker-compose -f ./Server/creditcoin-default.yaml down

  2. Download blockchain snapshot creditcoin-block-volume.tar.gz and place it in /

  3. Remove the existing blockchain files sudo bash -c "rm /var/lib/docker/volumes/server_validator-block-volume/_data/*"

  4. Extract the snapshot sudo tar xzvf /creditcoin-block-volume.tar.gz -directory /var/lib/docker/volumes/server_validator-block-volume/

  5. Restart the node sudo docker-compose -f ./Server/creditcoin-default.yaml up

Windows

  1. Download blockchain snapshot and note the location (e.g. C:\temp\creditcoin-blockchain-volume.tar.gz)

  2. Stop the creditcoin docker containers: > docker-compose -f ./Server/creditcoin-default.yaml down

  3. In a new PowerShell or Command Prompt window, create a temporary container, and mount Docker root to /host: > docker run -it -v /:/host ubuntu /bin/sh

  4. Get the new container name (It will be something like "recursing_lamport"): > docker container ls

  5. Copy the snapshot to the docker container (Where "recursing_lamport" is the container name from step 3) > docker cp "C:\temp\creditcoin-block-volume.tar.gz" recursing_lamport:/

  6. In the window from step 3, extract the blockchain snapshot: $ sudo tar xzvf /creditcoin-block-volume.tar.gz --directory /host/var/lib/docker/volumes/server_validator-block-volume/

  7. Restart the Creditcoin docker containers > docker-compose -f ./Server/creditcoin-default.yaml up

Mac OS X

  1. Download blockchain snapshot and note the location (e.g. /home/user/creditcoin-blockchain-volume.tar.gz)

  2. Stop the creditcoin docker containers: > docker-compose -f ./Server/creditcoin-default.yaml down

  3. In a new Terminal window, create a temporary container and mount Docker root to /host: > docker run -it -v /:/host ubuntu /bin/sh

  4. Get the new container name (It will be something like "recursing_lamport"): > docker container ls

  5. Copy the snapshot to the docker container (Where "recursing_lamport" is the container name from step 3) $ docker cp "/home/user/creditcoin-blockchain-volume.tar.gz" recursing_lamport:/

  6. In the window from step 3, extract the blockchain snapshot: $ sudo tar xzvf /creditcoin-block-volume.tar.gz --directory /host/var/lib/docker/volumes/server_validator-block-volume/

  7. Restart the Creditcoin docker containers > docker-compose -f ./Server/creditcoin-default.yaml up