Consensus Miner
Section Brief:
Mining preparation
Item | Parameter |
---|---|
Recommended OS and Version | Ubuntu_x64 20.04 or higher |
CPU Core | ≥ 4 |
Memory (SGX encrypted memory) | ≥ 64 GB |
Bandwidth | ≥ 5 M |
Public network IP | required |
Intel SGX Enable | required |
Linux Kernel Version | 5.11 or higher |
⚠️The CPU must support SGX (Software Guard Extensions) technology and FLC (Flexible Launch Control). The BIOS must support Intel SGX, and must enable the Intel SGX option. Please refer to the server manufacturer's BIOS guide to enable SGX functionality. Check out the CPU models that support SGX: CPU models.
The machine must use a fixed public network IP. The traffic exit must be in the same network segment as the fixed public network IP. Execute the following command to confirm they are in the same network segment.
Prepare CESS Account
Consensus miner needs to create two accounts
💰Stash account: for consensus miner’s staking and it requires at least 300000 TCESS, to ensure the successfulness, 1 more TCESS is recommended for the transaction.
🎮Controller account: for paying gas fees and it requires at least 100 TCESS.
Please refer to the CESS Account section above for creating a CESS account. Please join CESS Telegram miner support
sub-channel to receive TCESS tokens for staking.
After the wallet account is created, navigate to CESS Explorer
Install cess-nodeadm
⚠️If you have previously deployed nodeadm on your machine, please jump to this and then go to the next section. If you are new, just ignore it.
The "cess-nodeadm" is a CESS node deployment and management program. It can help deploy and manage storage nodes, consensus nodes and full nodes, lowering the operating threshold for all CESS miners.
⚠️Please make sure the cess-nodeadm version is correct, check the most updated version.
If Install cess nodeadm success
shows up, the installation is successful .
Open firewall ports
If your firewall is enabled, the following ports should be accessible externally: 10010, 4001, 30336.
Set up Configuration
Note: ost cess
commands require sudo permission
Show versions
Use below command to get node version information :
The output might look like this:
Note: The value of Profile
indicates the CESS network to which the node is currently connected, and the above indicates that devnet
is now used. You can use the cess profile
command to query and switch networks (switching networks requires stopping the current service and regenerating the configuration)
Start services
Become a validator
Bond fund for Validator
Choose “Network”, click “Staking > Accounts > Stash”
Select both Stash Account and Controller Account.
Value bonded: 300,000 TCESS is recommended to select the second option Stash Account as the reward receiving account (do not increase the amount at stake), which means that mining income will not automatically added to staking.
Click "Bond" -> "Sign and Submit" to link Stash Account and Controller Account
Fund is bonded successfully!
Generate Session Key
The field in the quotation marks is the Session Key, which will be used in subsequent operations.
Set up session key
Navigate to CESS Explorer, choose "Network > Staking > Accounts > Session Key"
Fill in the Session Key in the red box
Click "Sign and Submit"
Become a validator
Navigate to CESS Explorer, click "Network > Staking > Accounts > Validate"
Enter “100” in "reward commission percentage", indicating that the reward will not be distributed to others.
Select “No, block all nominations” in "allows new nominations", indicating that no nominations will be accepted.
Again, click "Sign and Submit"
After completing the steps above, open the CESS Explorer and click "Network > Staking > Waiting".
You should see that the node has already appeared on the candidate node list.
Rewards redemption
Navigate to CESS Explorer: "Network > Staking > Payouts > Payout"
In Payouts, click "Payout" to initiate a payment. Any account can initiate a payment .
⚠️: Please claim the reward within 84 era (each era of the test network is 6 hours), which is 21 days. Those who has not claimed the reward in this period will not be able to claim it.
Exit consensus mining
Cooling consensus
Navigate to blockchain explorer: "Network > Staking > Account Actions > Stop"
Clear session keys
CESS Explorer: "Developer -> Extrincs -> Submission"
Enter controller account
in “using the selected account”. Then in "submit the following extrinsic", enter "session" and choose "purgeKeys()" in the box next to it.
Click "Submit Transaction", enter the password and then click "Sign and Submit" button to clear session keys
Stake redemption
After 28 Eras(each era of the test network is 6 hours), do the following:
CESS Explorer "Network > Staking > Account Actions > Unbond Funds"
CESS Explorer "Developer -> Extrincs -> Submission -> teeWorker -> exit()"
Stop consensus miner server
Common operations
Quiry miner status
Examine config information
Stop and remove all service
New version upgrade
Stop and remove all service
Remove all program data
Update the cess-nodeadm
⚠️Please make sure the cess-nodeadm version is correct, check the most updated version.
Note: The version update mentioned here refers to the update of the cess-nodeadm program itself; If it is a node service, as long as they are running, they will automatically update.
Pull images
Last updated