📁
shine
  • Introduction to the Shine Blockchain platform
  • Shine overview
  • Shine USP
  • About EOSIO
  • Consensus mechanisms
  • Shine Proof of Authority consensus
  • Data privacy
  • Scalability
  • Business details
    • Why Blockchain
    • Why another Blockchain platform
    • Applications of Shine
      • Assumptions
      • Precious metals traceability
      • Food traceability
        • Spices
        • Perishables
        • Seafood
      • Carbon footprint monitoring
  • Tools, Technologies, and Architecture
    • Docker
    • MongoDB
    • Encryption
    • Server Security
    • Server requirements
    • Architecture
    • Transaction flows
  • Protocol
    • Microservices and APIs
    • Account management
  • Shine Blockchain Setup
    • SHINE Software Installation
    • Create Private/Public key pairs
    • Start the Blockchain node
    • Deploying System Smart Contracts
    • Add Producer/Validator Nodes
    • Node Security Setup
    • Deploying Traceability Smart Contracts
  • Backend Setup
    • Installing Prerequisites
    • Starting The Application
  • Front end Setup
    • User Interface
Powered by GitBook
On this page

Was this helpful?

  1. Shine Blockchain Setup

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
PreviousDeploying System Smart ContractsNextNode Security Setup

Last updated 1 year ago

Was this helpful?