Cronos POS Chain Mainnet: Running a Validator
Last updated
Last updated
This is detailed documentation for setting up a Validator on Cronos POS Chain mainnet. Note that while anyone can set up a validator, only the top 100 validators are considered "active" and eligible to receive rewards. See for more info.
There are two ways to set up a node:
For the host who would like to build a Validator with complete blockchain data from scratch,
Note that there were several breaking network upgrades, requiring upgrading at designated block heights. For more details on upgrading, we refer to this on running a full node.
Once you have a complete synced node, you can revisit this page and jump to the of joining the networking as a validator.
For hosts who would like to join the network and start validating quickly, one can:
Begin with the binary v3.3.9
and join the network by STATE-SYNC
To simplify this guide, we will be covering the second case here in this guide, and guide you to begin with binary v3.3.9
and join the network by STATE-SYNC
.
We officially support macOS, Windows and Linux only. Other platforms may work, but there is no guarantee. We will extend our support to other platforms after we have stabilized our current architecture.
For Cronos POS Chain mainnet, you will need a machine with the following minimum requirements to run different types of nodes:
Archive Node (setting pruning = nothing)
RAM: 64GB (Rocksdb)
Disk: 3.4TB
CPU: 4 cores
Default Full Node (setting pruning = default)
RAM: 64GB (Rocksdb) or 16GB (goleveldb)
Disk: 1.2TB (From quick sync)
CPU: 4 cores
Pruned Node (setting pruning = everything)
RAM: 64GB (Rocksdb) or 16GB (goleveldb)
Disk: 40GB (From quick sync)
CPU: 4 cores
Please note that the size of snapshots from Quicksync will keep growing.
There are two options to install chain-maind
:
chain-maind
released binaries from GitHubTo install Cronos POS Chain binaries from Github:
You can verify the installation by checking the version of the chain-maind, the current version is 3.3.9
.
OR
chain-maind
by homebrewTo install binaries in Homebrew for macOS X or Linux
First, install the crypto-org-chain
tap, a repository of our Homebrew chain-maind
package:
Now, install the chain-maind
with crypto-org-chain/chain-maind
You can verify the installation by checking the version of the chain-maind
chain-maind
Before kick-starting your node, we will have to configure the node so that it connects to the Cronos POS Chain mainnet
chain-maind
First of all, you can initialize chain-maind by:
This moniker
will be the displayed ID of your node when connected to the Cronos POS Chain network. When providing the moniker value, make sure you drop the square brackets since they are not needed.
Download and replace the Cronos POS Chain mainnet genesis.json
by:
Follow the below steps to enable state-sync:
For state-sync configuration, in ~/.chain-maind/config/config.toml
, please modify the configurations under [statesync] enable
, rpc_servers
, trust_height
and trust_hash
and add persistent_peers
by:
Once the chain-maind
has been configured, we are ready to start the node and sync the blockchain data:
Start chain-maind
, e.g.:
OR
(Optional for Linux) If you would like to have it running in the background, you can start chain-maind
with systemd
service, e.g.:
It should begin fetching blocks from the other peers. Please wait until it is synced before moving onto the next step.
create-validator
transactionOnce the node is synced, we are now ready to send a create-validator
transaction and join the network, for example:
Once the create-validator
transaction completes, you can check if your validator has been added to the validator set:
You can also check your public key by:
query bank balances
- Check your transferable balanceYou can check your transferable balance with the balances
command under the bank module.
tx bank send
- Transfer operationTransfer operation involves the transfer of tokens between two addresses.
tx bank send <from_key_or_address> <to_address> <amount> <network_id>
]tx staking
- Staking operationsStaking operations involve the interaction between an address and a validator. It allows you to create a validator and lock/unlocking funds for staking purposes.
tx staking delegate <validator-addr> <amount>
]tx staking unbond <validator-addr> <amount>
]On the other hand, we can create an Unbond
transaction to unbond the delegated funds
After you have delegated or created a validator, the reward will be accumulated, you can check/ withdraw it by:
query distribution validator-outstanding-rewards
- Query un-withdrawn rewards for a validatorWe can check the distribution outstanding (un-withdrawn) rewards for a validator and all of their delegations by operator address.
tx distribution validator-outstanding-rewards
- Query un-withdrawn rewards for a validatorWe can check the distribution outstanding (un-withdrawn) rewards for a validator and all of their delegations by operator address.
tx slashing unjail
- Unjail a validatorValidator could be punished and jailed due to network misbehaviour, we can check the jailing status of a validator, for example:
Where "jailed": true
implies that the validator has been jailed. After the jailing period has passed, one can broadcast a unjail
transaction to unjail the validator and resume its normal operations by
Remarks: The following is the minimal setup to join Cronos POS Chain Mainnet. Furthermore, you may want to run full nodes as sentries (see ), restrict your validator connections to only connect to your full nodes, use secure storage and service for your validator keys, etc.
To simplify the following step, we will be using Linux for illustration. Binary for and are also available.
; or
is a free and open-source package management system for macOS X. Install the official Chain-maind formula from the terminal.
In ~/.chain-maind/config/app.toml
, update minimum gas price to avoid
Reminder: The list of the seed
is subject to change, you can also find the latest seed to connect .
With your node will download data related to the head or near the head of the chain and verify the data. This leads to drastically shorter times for joining a network for validators. For the validator, it will be amazingly fast to sync the near head of the chain and join the network.
Cautious
Blocks before state-sync trust height
will NOT be queryable. If you want to run a full node or a validator with complete blockchain data; It is not suggested to use state-sync.
Kindly refer to this on building a node with complete data.
To further check if the validator is signing blocks, kindly run this , for example:
Congratulations! You've successfully set up a mainnet node and performed some basic transactions! You may refer to for more advanced operations and transactions.
To bond funds for staking, you can delegate funds to a validator by the delegate
command. Note that you can look up validators and their operator address by the validator list on the .