Running a Consensus Node

System Requirement

If you're planning to run a consensus miner, it's important to make sure your system meets the recommended requirements to ensure that your miner performs at its best.

Resource
Specification

Recommended OS

Ubuntu_x64 20.04 or higher

CPU Processor Num

≥ 4

Memory

≥ 16 GB

Bandwidth

≥ 5 Mbps

Public Network IP

required

Linux Kernel Version

5.11 or higher

Prepare Stash Account

  • Stash Account: This is the account where you keep all the funds you want to stake. This account requires at least 3,000,000 TCESS for staking it can be either from the node owner itself or delegated by other users.

You can also refer to the page Creating CESS Accounts for creating a CESS account.

You can either use CESS premainnet faucet to get TCESS, or contact us to receive TCESS tokens for staking.

Binding Funds to Stash Account

Open CESS Explorer and Select Network > Staking > Accounts > Stash

Add a Stash

Select the appropriate stash account from the drop-down menu and enter at least 3,000,000 TCESS in value bounded field. In payment destination, select Stash Account as the reward receiving account (do not increase the amount at stake), which means that mining income will not be automatically added to the stake.

Bond Fund

Click Bond -> Sign and Submit to link the Stash Account.

Sign and Submit

Fund is bonded successfully!

Bonded Fund Successfully

Run a chain node

Run with nodeadm

Install nodeadm

Please purge all of previous data before running a CESS consensus node on machine if an old version consensus node was installed.

The cess-nodeadm is a CESS node deployment and management tool. It helps to deploy and manage storage nodes, consensus nodes, and rpc node, simplifying the devOps for all CESS miners.

You can verify that you are running the latest version of cess-nodeadm here.

On successful installation of cess-nodeadm you will see Install cess nodeadm success message.

If the installation fails, please check the troubleshooting procedures.

Configure nodeadm

Please run the following command to configure nodeadm.

  • set mode with validator

  • set a custom node name cess or any other name of your choice.

Run with container

  1. Environment Setup Requirements

  2. Running Command

    Make sure that port 30336 and 9944 are not occupied by other processes.

Run with systemd

Download source files

Get the latest release from Github

Get the source files from a local container

Run as systemd service


Become a Validator

  1. Start the chain node

Make sure that the chain node is running normally before proceeding.

  1. Generate a session key

    rotate-keys Output Example
  2. Set up a session key

    Navigate to CESS Explorer, choose Network > Staking > Accounts > Session Key

    Session Key 01

    Fill in the Session Key in the red box

    Session Key 02

    Click Sign and Submit

    Session Key 03
  3. Becoming a validator

    Navigate to CESS Explorer, click Network > Staking > Accounts > Validate

    Validator 01
    Validator 02

    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 dropdown, indicating that no nominations will be accepted.

    Again, click Sign and Submit.

    Validator 03

    After completing the steps above, open the CESS Explorer and click Network > Staking > Waiting.

    Validator 04

    You should see that the node has already appeared on the candidate node list.

Redeeming Rewards

Navigate to CESS Explorer: Network > Staking > Payouts > Payout.

Redemption: First Step

In Payouts, click Payout to initiate a payment. Any account can initiate a payment.

Redemption: Second Step

Please claim the reward within 84 era (each era of the test network is 6 hours), which is 21 days. Those who hasn't claimed the reward in this period will not be able to claim it.

Exiting Consensus from Validation

  1. Stop the Consensus

    In CESS Explorer, navigate to: Network > Staking > Account Actions > Stop.

    Exiting-01
  2. Clear Session Keys

    In CESS Explorer, navigate to: Developer -> Submission

    Exiting-02

    Enter controller account in using the selected account controller. Then in submit the following extrinsic, enter session and choose purgeKeys() in the box next to it.

    Exiting-03

    Click Submit Transaction button to clear session keys

    Exiting-04

Redeeming Stake

  1. Unbond fund

    After 28 eras (each era of the test network is 6 hours), goto CESS Explorer, navigate to: Network > Staking > Account Actions > Unbond Funds.

    Staking 01
  2. Stop the CESS client

Upgrade CESS Nodeadm Client

Stop and Remove All Services

Remove All Chain Data

Update cess-nodeadm

Pull Images

Last updated

Was this helpful?