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 pull gluwa/creditcoin-client:latest
$ docker pull gluwa/creditcoin-gateway:latest
$ docker pull gluwa/creditcoin-validator:latest
$ docker pull gluwa/creditcoin-processor:latest

3. Start your existing docker containers:

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

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 directly here.

Magnet Link:

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

Latest Block: 462,625

SHA-256 Hash: BA38C120F0928BDCB8ACDA03DBE2D582E592EAD3E81CCF623692B6E00BBA771F

Use Snapshot

Linux

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

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

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

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

  5. Restart the node sudo docker-compose -f ~/miner/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/validator_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/validator_validator-block-volume/

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