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. 1.
    Stop your existing docker containers:
1
$ docker-compose -f Server/docker-compose.yaml down
Copied!
2. Run the following commands:
1
$ docker-compose -f Server/docker-compose.yaml pull
Copied!
3. Start your existing docker containers:
1
$ docker-compose -f Server/docker-compose.yaml up
Copied!
Have a Problem Updating?
Check if your images in your .yaml file(s) are set to these:
1
gluwa/creditcoin-client:1.7
2
gluwa/creditcoin-validator:1.7
3
gluwa/creditcoin-processor:1.7
4
gluwa/creditcoin-gateway:1.7
5
gluwa/sawtooth-rest-api:1.7
Copied!

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:
1
image: gluwa/sawtooth-rest-api:1.7
Copied!
2. Processor container section, do the following: a. Remove - rest-api from the depends_on section b. Replace the entrypoint lines with:
1
entrypoint: ./ccprocessorLinux.out tcp://validator:4004 tcp://gateway:55555
Copied!
3. In the Validator container section, replace the existing seeds lines with the following:
1
--seeds tcp://node-000.creditcoin.org:8800 \
2
--seeds tcp://node-001.creditcoin.org:8800 \
3
--seeds tcp://node-002.creditcoin.org:8800 \
4
--seeds tcp://node-003.creditcoin.org:8800 \
Copied!

Download Snapshot

We strongly recommend using the published blockchain snapshot to avoid any potential problems.
  • Timestamp: 10/17/2021 @ 08:50 GMT
  • Latest Block: 961,837
  • File Name: ccSnapshot-2021.10.16_961837.tar.gz
  • File Size: 89 GB
  • SHA-256 Hash: BE87E0365CCC01147D9D98DA0397F62F716AF4B2FC9586232160790580252948

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. 1.
    Stop the node sudo docker-compose -f Server/docker-compose.yaml down
  2. 2.
    Download blockchain snapshot and place it in /
  3. 3.
    Remove the existing blockchain files sudo bash -c "rm /var/lib/docker/volumes/server_validator-block-volume/_data/*"
  4. 4.
    Extract the snapshot sudo tar xzvf /ccSnapshot-2021.10.16_961837.tar.gz --directory /var/lib/docker/volumes/server_validator-block-volume/
  5. 5.
    Restart the node sudo docker-compose -f Server/docker-compose.yaml up

Windows

  1. 1.
    Download blockchain snapshot and note the location (e.g. C:\temp)
  2. 2.
    Stop the creditcoin docker containers: > docker-compose -f Server/docker-compose.yaml down
  3. 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. 4.
    Get the new container name (It will be something like "recursing_lamport"): > docker container ls
  5. 5.
    Copy the snapshot to the docker container (Where "recursing_lamport" is the container name from step 3) > docker cp "C:\temp\ccSnapshot-2021.10.16_961837.tar.gz" recursing_lamport:/
  6. 6.
    In the window from step 3, extract the blockchain snapshot: $ sudo tar xzvf /ccSnapshot-2021.10.16_961837.tar.gz --directory /host/var/lib/docker/volumes/server_validator-block-volume/
  7. 7.
    Restart the Creditcoin docker containers > docker-compose -f Server/docker-compose.yaml up

Mac OS X

  1. 1.
    Download blockchain snapshot and note the location (e.g. /home/user)
  2. 2.
    Stop the creditcoin docker containers: > docker-compose -f Server/docker-compose.yaml down
  3. 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. 4.
    Get the new container name (It will be something like "recursing_lamport"): > docker container ls
  5. 5.
    Copy the snapshot to the docker container (Where "recursing_lamport" is the container name from step 3) $ docker cp "/home/user/ccSnapshot-2021.10.16_961837.tar.gz" recursing_lamport:/
  6. 6.
    In the window from step 3, extract the blockchain snapshot: $ sudo tar xzvf /ccSnapshot-2021.10.16_961837.tar.gz --directory /host/var/lib/docker/volumes/server_validator-block-volume/
  7. 7.
    Restart the Creditcoin docker containers > docker-compose -f Server/docker-compose.yaml up
Last modified 11d ago