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.

Option 1: Update Creditcoin Images

Recommended for regular users

Note: In the commands provided below you may need to replace Server/docker-compose.yaml with your .yaml file name and path for your node.

If you run into any issues, download the latest version of the docker-compose files from Github, 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:1.7
gluwa/creditcoin-validator:1.7
gluwa/creditcoin-processor:1.7
gluwa/creditcoin-gateway:1.7
gluwa/sawtooth-rest-api:1.7

Option 2: Manually update several lines in your existing docker-compose.yaml file

Recommended for advanced users

1. In the REST API container section, replace the image line with:

image: gluwa/sawtooth-rest-api:1.7

2. Processor container section, do the following: a. Remove - rest-api from the depends_on section b. Replace the entrypoint lines with:

entrypoint: ./ccprocessorLinux.out tcp://validator:4004 tcp://gateway:55555

3. In the Validator container section, replace the existing seeds lines with the following:

--seeds tcp://node-000.creditcoin.org:8800 \
--seeds tcp://node-001.creditcoin.org:8800 \
--seeds tcp://node-002.creditcoin.org:8800 \
--seeds tcp://node-003.creditcoin.org:8800 \

Download Snapshot

We strongly recommend using the published blockchain snapshot to avoid any potential problems.

Direct download link: http://dl.creditcoin.org/latestblocks/ccSnapshot-2021.08.29_899126.tar.gz

  • Timestamp: 8/29/2021 @ 12:00 GMT

  • Latest Block: 899,126

  • File Name: ccSnapshot-2021.08.29_899126.tar.gz

  • File Size: 89 GB

  • SHA-256 Hash: 2705a7809022d239e71a0e6de770a05cb290ff6a9b22e5286822e68bbd28c415

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 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 /ccSnapshot-2021.08.29_899126.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)

  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\ccSnapshot-2021.08.29_899126.tar.gz" recursing_lamport:/

  6. In the window from step 3, extract the blockchain snapshot: $ sudo tar xzvf /ccSnapshot-2021.08.29_899126.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)

  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/ccSnapshot-2021.08.29_899126.tar.gz" recursing_lamport:/

  6. In the window from step 3, extract the blockchain snapshot: $ sudo tar xzvf /ccSnapshot-2021.08.29_899126.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