Environments

A node can be configured to connect to different Creditcoin networks. Each network has different configurations and use cases.

The network configuration is specified using the --chain flag and the --bootnodes flag, which specifies the initial nodes to connect to. Currently, only the test network chain specs include bootnodes. The main and dev networks bootnodes must be specified manually.

Example:

./target/release/creditcoin-node --chain main --bootnodes "/dns4/bootnode.creditcoin.network/tcp/30333/p2p/12D3KooWAEgDL126EUFxFfdQKiUhmx3BJPdszQHu9PsYsLCuavhb"

ChainSpecs

Creditcoin networks are configured using a ChainSpec. The ChainSpec is a JSON file that defines the initial configuration of the network. To use a ChainSpec, use the --chain flag when starting the node.

  • Mainnet: --chain main

  • Testnet: --chain test

  • Devnet: --chain dev

Bootnodes

Bootnodes are nodes that are always on and can be used to bootstrap new nodes and discover other nodes in the network. To use a bootnode, use the --bootnodes flag when starting the node followed by the bootnode's address.

Last updated