-
Notifications
You must be signed in to change notification settings - Fork 100
Consensus Miners
Item | Parameter |
---|---|
Recommended OS and Version | Ubuntu_x64 18.04 or higher /CentOS 7.0 or higher |
CPU Core | ≥ 4 |
Memory (SGX encrypted memory) | ≥ 64 GB |
Bandwidth | ≥ 5 M |
Public network IP | required |
Intel SGX Enable | required |
Note:
-
The service 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. Set the 'Intel Memory Size' in the BIOS: the maximum is 37.5% of the total memory, and the minimum is 5G. 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.
curl ifconfig.co
Detailed instruction of operating system installation is not given here because different operating systems have different installation methods and some basic software packages may not be found.
-
Storage miner needs to create two accounts
-
Account 1 (Stash account): for consensus miner’s staking and it requires at least 1,000,001 TCESS.
-
Account 2 (Controller account): for paying gas fees and it requires at least 1 TCESS.
-
-
Please refer to the CESS Wallet section above for creating a CESS wallet. Please join CESS Discord miner support sub-channel to receive TCESS tokens for staking.
-
After the wallet account is created, navigate to CESS official blockchain explorer). Choose Network, click Staking > Account Actions > Stash under Network
- Select both Stash Account and Controller Account.
Value bonded: 1,000,000 TCESS It 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 add to staking.
- Click Bond > Sign and Submit to link between the Stash Account and the Controller Account
- Wallet is created successfully:
wget https://github.com/CESSProject/cess-nodeadm/archive/v0.1.0.tar.gz
tar -xvf v0.1.0.tar.gz
cd cess-nodeadm-0.1.0
sudo ./install.sh
if execute the 'sudo ./install.sh' command and 'Install success' appears,the installation is successful
cess config set
If the following exception occurs,please execute the 'cess config set +Enter' command several times
'[ERROR] download image cesslab/cess-chain:latest failed, try again later'
cess start chain
cess start scheduler
curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "author_rotateKeys", "params":[]}' http://localhost:9933
The field in the quotation marks after "result" is the Session Key(the highlighted part), which will be used in subsequent operations. "localhost:9933" is the default port.
- Operation demonstration
- Navigate to CESS blockchain explorer, choose Network > Staking > Account Actions > Session Key
- Fill in the Session Key in the red box
- Click Sign and Submit
- Navigate to CESS blockchain explorer,again click Network > Staking > Account Actions > 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 blockchain explorer and click Network > Staking > Waiting to see that the node has appeared in the candidate node list.
- Navigate to blockchain explorer: Network > Staking > Payouts > Payout
- In Payouts, click Payout to initiate a payment. Any account can initiate a transaction.
Note: Please claim the reward within 84 era (each era of the test network is 6 hours), and those who have not claimed the reward in this period will not be able to claim it.
- Execute the following command to stop the consensus mining operation.
- Navigate to blockchain explorer: Network > Staking > Account Actions > Stop
- Blockchain explorer: Developer > Submission
- Enter controller account in Using the Selected Account Controller. Then in Submit the At the Following Extrinsic, enter "session" and choose "purgeKeys()" in the box next to it.
- Click Submit Transaction, enter password and click Sign and Submit to clear session keys!
- Blockchain explore: Network > Staking > Account Actions > Unbond Funds
cess stop