Mining Guide On Conflux Network

  1. Preparation — Obtaining a Public Wallet Address
  2. Install Conflux Network on Windows
  3. Install Conflux Network on Mac
  4. Install Conflux Network on Linux
  5. Synchronizing the latest code from the testnet
  6. Mining Log Information
  • Conflux Network Mainnet Phase II - Oceanus was officially launched on the 18th of July 2020, the current version (at publication): v0.6.1.
  • Conflux’s current Testnet is called “Conflux Testnet”, the current version (at publication): v0.6.0-rc-3. All data on Conflux Testnet is test data
  • Conflux Bounty Program was launched in August 2019. The Bounty Program will have a series of tasks to obtain FanCoins (FC), which can be swapped to the Conflux Network Mainnet Token CFX on a 1:1 ratio once the final mainnet is launched
  • Conflux Testnet is in a stable version. The necessary files for mining on different operating systems can be found on Github. This guide is for everyone, even without prior coding knowledge.

1. Preparation — Obtaining a Public Wallet Address

2. Install Conflux Network on Windows

Download the latest release of Oceanus

Preparations:

  • Open up: C-Drive → User → <UserName>
  • Create Folder: conflux
  • Extract downloaded file into the newly created folder: conflux
conflux 
└── run
├── conflux
├── default.toml
└── log.yaml

Configurations:

  • Configure the code line start_mining=true to enable mining:
Remove the “#” at the beginning of this line to enable mining.
  • Configure the code line mining_author to receive your mining rewards:
Remove the 0x prefix when entering your wallet address.
Find your account address under “Address” in your Conflux wallet.
Remove the “#” at the beginning of this line.
  • Configure your public_address by replacing the xx.xx.xx.xx with your public IP address:
Add “:32323” at the end of your IP address. The final result should be in this format: xx.xx.xx.xx:32323.
  • Save the changes you made and exit

Start mining:

  • Press the “Start” button
  • Search for cmd and open it
  • Copy the following code into the cmd window, and press “Enter”:
cd conflux\run
  • Copy the following code into the cmd window, and press “Enter”:
conflux --config default.toml --full 2>stderr.txt

Stop mining:

  • Click on the opened cmd window and press Ctrl+C, or
  • Directly close the cmd window, or
  • Open task manager, select detail information — find conflux, select it and end process

3. Install Conflux Network on Mac

Download the latest release of Conflux Oceanus

Preparations:

conflux  
└── run
├── conflux.exe
├── default.toml
├── log.yaml
└── throttling.toml
  1. Download the latest release of Oceanus is in the Downloads folder of your Mac
  2. Open Terminal on your Mac (Press: Command + Enter; Type in “Terminal”; Press Enter)
cd ~/Downloads && mkdir -p confluxunzip conflux_mac_v0.6.1.zip -d confluxcd conflux/run
- Go into the Downloads folder and create a conflux folder (requirement 1)
- Unzip the downloaded latest release of the testnet into the conflux folder (requirement 2-3)
- change directory
Downloads
└──conflux
└──run
├── conflux
├── default.toml
├── log.yaml
└── throttling.toml

Configurations:

  • Configure the line forstart_mining=true to enable mining:
Remove the “#” at the beginning of this line to enable mining.
  • Configure the line formining_author to receive your mining rewards:
Remove the 0x prefix when entering your wallet address.
Find your account address under “Address” in your Conflux wallet.
Remove the “#” at the beginning of this line.
  • Configure your public_address by replacing the xx.xx.xx.xx with your public IP address:
Add “:32323” at the end of your IP address. The final result should be in this format: xx.xx.xx.xx:32323.
  • Save the changes you made and exit

Start mining:

  1. Open Terminal on your Mac (Click: Command + Enter; Type in “Terminal”; Press Enter)
  • Copy the following lines:
cd ~/Downloads/conflux/runulimit -n 10000./conflux --config default.toml --full 2>stderr.txt
cd ~/Desktop/run./conflux --config default.toml

Stop mining:

  1. Open Terminal on your Mac (Press: Command + Enter; Type in “Terminal”; Press Enter)
  • Press: Control + C, or
  • Close the Terminal window

4. Install Conflux Network on Linux

Download the latest release of Conflux Oceanus

Preparations:

  • Extract the downloaded latest release of the network
  • Open Terminal
  • Copy the following line into Terminal and press “Enter”
mkdir -p conflux
  • Copy the following lines into Terminal and press “Enter”
unzip conflux_linux_v0.6.1.zip -d conflux && cd conflux/run
conflux 
└── run
├── conflux
├── default.toml
├── log.toml
└── throttling.yaml

Configurations:

  • Configure the line forstart_mining=true to enable mining:
Remove the “#” at the beginning of this line to enable mining.
  • Configure the line for mining_author to receive your mining rewards:
Remove the 0x prefix when entering your wallet address.
Find your account address under “Address” in your Conflux wallet.
Remove the “#” at the beginning of this line.
  • Configure your public_address by replacing the xx.xx.xx.xx with your public IP address:
Add “:32323” at the end of your IP address. The final result should be in this format: xx.xx.xx.xx:32323.
  • Save the changes you made and exit

Start mining:

./conflux --config default.toml --full 2>stderr.txt

5. Synchronizing the latest code from the testnet

  • Go to github.com/Conflux-Chain and download the latest release package for your OS (version at publication: v0.6.1)
  • Extract files
  • Copy the conflux file and replace with the previous one
  • Properly check the configuration of default.toml, especially: public_address, start_mining=true, and mining_author.
cd run   - Mac: ulimit -n 10000./conflux --config default.toml --full 2>stderr.txt    - Linux:  ./conflux --config default.toml --full 2>stderr.txt- Windows:    conflux --config default.toml --full 2>stderr.txt

6. Mining Log Information

1) Statistics: StatisticsInner { sync_graph: SyncGraphStatistics { inserted_block_count: xxx }, consensus_graph: ConsensusGraphStatistics { inserted_block_count: yyy, processed_block_count: yyy } }
  • When xxx is increasing, it means that the block synchronization is working properly, especially when it’s the first time connecting
  • Remark 1 - mode: false means that the network data catch-up synchronization process is completed and that mining is ongoing
  • Remark 2 - epoch:424480 means that you are mining in the 424480th epoch
  • Remark 3 - when the numbers behind the word epoch are increasing continuously, the mining process is on-going

About Conflux Network

To discuss Conflux Network and join our community, visit our official channels:

Twitter | Discord | Telegram | GitHub

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Conflux Network

Conflux Network

Conflux is a PoW + PoS hybrid first layer consensus blockchain for dApps that require speed at scale, without sacrificing decentralization.