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

Note: In the commands provided below you may need to replace Server/docker-compose.yaml with your the .yaml file name and path for your node, or download the latest version of the docker-compose files from Github, and then follow the instructions in Creditcoin Miner's Manual to reconfigure your node.

  1. Stop your existing docker containers:

$ docker-compose -f Server/docker-compose.yaml down

2. Run the following commands:

$ docker-compose -f Server/docker-compose.yaml pull

3. Start your existing docker containers:

$ docker-compose -f Server/docker-compose.yaml 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:5b2f2ebf6be7e37e7bdf71c5edf356a7dec87ca2&dn=creditcoin-block-volume.tar.gz&tr=udp%3a%2f%2ftracker.openbittorrent.com%3a80&tr=udp%3a%2f%2ftracker.opentrackr.org%3a1337%2fannounce

Timestamp: October 7, 2020 10:10 PM UTC

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

Latest Block: 603,058

SHA-256 Hash: 6a10f081137481aca963d1432228d694948f38361b6980b5c13f30795036a26e

Use Snapshot

Note: In the commands provided below you may need to replace Server/docker-compose.yaml with your the .yaml file name and path for your node, or download the latest version of the docker-compose files from Github, and then follow the instructions in Creditcoin Miner's Manual to reconfigure your node.

Linux

  1. Stop the node sudo docker-compose -f Server/docker-compose.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/docker-compose.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/docker-compose.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/docker-compose.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/docker-compose.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/docker-compose.yaml up