CC Enterprise
CC Enterprise
  • Documentation
  • What is Creditcoin
  • Staking
    • Bonded Tokens
    • Validator Elections
    • Eras and Sessions
    • Staking Rewards
    • Slashing
  • Wallets
    • Types of Wallets
    • Graphical User Interface
      • Polkadot-JS Extension
      • SubWallet
    • Command-line Interface
      • Subkey
      • Creditcoin-CLI (beta)
  • Nominator Guides
    • Account Setup
    • Selecting Validators
    • Nominate using the Staking Dashboard
  • Validator Guides
    • Minimum Requirements
    • Building from Source
    • Using a Docker Container
    • Stake using Creditcoin-CLI
  • Environments
    • Mainnet
    • Testnet
    • Devnet
  • Creditcoin Change Log
    • Version 2.4.0 - 2024-08-15
    • Version 2.3.2 - 2023-11-01
    • Version 2.3 - 2023-08-31
    • Version 2.2 - 2022-06-02
    • Version 2.1 - 2022-05-02
    • Version 2.0 - 2022-03-23
    • Version 1.8 - 2022-03-28
    • Version 1.7.1 - 2021-07-23
    • Version 1.7.0 - 2021-06-15
  • FAQ
Powered by GitBook
On this page
  1. Validator Guides

Building from Source

Install Rust

Install the latest version of Rust.

curl https://sh.rustup.rs -sSf | sh -s -- -y

If Rust is already installed, make sure to add the nightly version and the WebAssembly target:

# Ensure the current shell has cargo
source ~/.cargo/env

# Update the Rust toolchain
rustup default stable
rustup update

# Add the nightly and WebAssembly targets:
rustup update nightly-2023-04-16
rustup target add wasm32-unknown-unknown --toolchain nightly-2023-04-16

Verify your installation.

rustup show

Install dependencies

Make sure you have all the necessary dependencies for compiling and running the Creditcoin node software.

sudo apt install make clang pkg-config libssl-dev build-essential protobuf-compiler

Building & Installing the Creditcoin binary

Download the repository by cloning it.

git clone https://github.com/gluwa/creditcoin

Move into the creditcoin folder and checkout to the main branch by running the following command.

cd creditcoin git checkout main

Build the binary with cargo.

cargo build -r

This step might take 10 - 40 minutes to finish.

Sync Chain Data

Synchronize your node by running the binary inside the target/release folder.

./target/release/creditcoin-node \
  --prometheus-external \
# (optional) opt in to telemetry
  --telemetry-url "wss://telemetry.creditcoin.io/submit/ 0" \
# node to connect to on boot, in order to join the network
  --bootnodes "/dns4/bootnode.creditcoin.network/tcp/30333/p2p/12D3KooWAEgDL126EUFxFfdQKiUhmx3BJPdszQHu9PsYsLCuavhb" "/dns4/bootnode2.creditcoin.network/tcp/30333/p2p/12D3KooWSQye3uN3bZQRRC4oZbpiAZXkP2o5UZh6S8pqyh24bF3k" "/dns4/bootnode3.creditcoin.network/tcp/30333/p2p/12D3KooWFrsEZ2aSfiigAxs6ir2kU6en4BewotyCXPhrJ7T1AzjN" \
# REPLACE <yourhostname or ip> with the public IP address or host name that your node can be reached at
  --public-addr "/dns4/<yourhostname or ip>/tcp/30333" \
# we want to connect to the mainnet
  --chain mainnet \
# the base path to store the node's data
  --base-path /data \
# the port to use for node-to-node communication
  --port 30333
PreviousMinimum RequirementsNextUsing a Docker Container

Last updated 1 year ago

You may need to install & configure .

You will be building the latest creditcoin binary from repository on Github using the source code in the main branch.

Network Time Protocol (NTP) Client
gluwa/creditcoin