If Rust is already installed, make sure to add the nightly version and the WebAssembly target:
# Ensure the current shell has cargosource~/.cargo/env# Update the Rust toolchainrustupdefaultstablerustupupdate# Add the nightly and WebAssembly targets:rustupupdatenightly-2023-04-16rustuptargetaddwasm32-unknown-unknown--toolchainnightly-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
./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