Add Producer/Validator Nodes

Generating the key pair for the node

this will create a new key-pair and prints the public and private keys

cleos create key --to-console

Register a new account with the created keys

cleos create account eosio ACCOUNT_NAME PUBLIC_KEY1 PUBLIC_KEY2

Starting the new node

We need to modify the config file before starting the new node:

config.ini

....
producer-name = eosio
signature-provider=PUBLIC_KEY1=KEY:PRIVATE_KEY1
....

Now we have everything needed for the setup. Now follow the same steps that we did when we started the first node.

Once the synchronisation is done, the current producer node has to run the command to update the list of all producing nodes.

Below is a sample producer node list file for reference.

{
    "schedule": [
        {
            "producer_name": "eosio",
            "authority": [
                "block_signing_authority_v0",
                {
                    "threshold": 1,
                    "keys": [
                        {
                            "key": "EOS5LT7tn9ZbrFskZiKkhWMzyYZBqiyXYC6QZZAvjymomfZZjCWFv",
                            "weight": 1
                        }
                    ]
                }
            ]
        },{
            "producer_name": "wandx",
            "authority": [
                "block_signing_authority_v0",
                {
                    "threshold": 1,
                    "keys": [
                        {
                            "key": "EOS87Di7hY7n54c4JCp9PUYe19N6EMu5yQvqpnW65vuWyq1RZaqr5",
                            "weight": 1
                        }
                    ]
                }
            ]
        }
    ]
}

Once the above file has been edited with the producer details, run the below command to set the current producers.

cleos push action eosio setprods producers.json -p eosio@active

Last updated

Was this helpful?