All pages
Powered by GitBook
1 of 3

Loading...

Loading...

Loading...

Validator

Overview

FON Smart Chain is an innovative solution, FON Smart Chain relies on a system of 99 validators with Proof of Stake (APoS) consensus that supports short block times and low fees. The validator candidate with the most stake will become a validator and produce blocks. Double-signature detection and other slashing logic guarantee security, stability, and chain finality.

In addition to the 21 active verifiers, FSC will also introduce more verifiers, for example, more than 21 inactive verifiers will be added to the verifier set as backups, and these verifiers will be called "candidates".

Unavailable candidates will also be cut, but on a smaller scale. Good incentives are expected to remain so that candidate validators are willing to ensure quality and help secure FSC.

In the extreme case, if a majority of the 21 active validators are attacked and go offline, validator candidates can report stale blockages to the beacon chain, restore it and eventually propose to re-elect the active validator set.

What is a validator?

FON Smart Chain relies on a set of validators who are responsible for submitting new blocks in the blockchain. These validators participate in the consensus protocol by signing blocks containing cryptographic signatures signed by each validator's private key. The validator set is determined by the pledge module built on the FON smart chain, and the election rankings are refreshed every 3 hours to elect 21 valid validators.

Create a validator

You need to first create an account representing the key pair. Create a new account and set a password for the account with the following command:

This command will return the public address and the path to the private key. A backup of the key file is necessary!

If you already have an account, use the seed phrase to restore it:

You need to use the contract to create a validator,

To create a verifier, you need to pledge 9999 FON After the creation is complete, you need the creator's address, vote for yourself first, and let yourself enter the 99th place

In the validator campaign, the campaign ranking is refreshed every 3 hours, so as to compete for the qualification of the block producer.

geth account new --datadir ./data

Create a mining account

Become a validator candidate

FSC Validator
geth account import --datadir ./data

Run validator

Validator hardware requirements

  • A VPS running the latest version of Mac OS X or Linux.

  • Important 2T GB free disk space, Solid State Drive (SSD), gp3, 8k IOPS, 250MB/S throughput, read latency <1ms (NVMe SSD required if booting with snapshot/quick sync)

  • 16-core CPU and 64 GB of memory (RAM)

  • We recommend using the m5zn.3xlarge instance type on AWS, or c2-standard-16 on Google Cloud.

  • Broadband Internet connection with upload/download speed of 10 megabytes per second

Follow the instructions here to set up a full node.

!!!Warning Please do not expose your RPC endpoints to the public network.

You can stop mining new blocks by sending the command in the geth console

Connect to your validator using geth attach ipc:path/to/geth.ipc

To resume verification,

Set up a validator

1.Synchronize block information

Start the validator

Stop verification

## generate the consensus key and input the password
echo {your-password to the mining account} > password.txt
geth --datadir data \
--networkid 201022 \
--nodiscover \
--syncmode full \
--password password.txt \
--allow-insecure-unlock \
--unlock {the address of your mining account} \
--miner.gasprice 150000000000 \
--mine \
--miner.threads 1 \
--miner.gaslimit 80000000
miner.stop()
miner.start()