portfolio-img

Build Node Tutorial

(1) Run Node

Mainnet source code and binary program
GitHub: https://github.com/Krishnaproject2022/krishna

  • 1. Initialization
    ./geth init genesis*
  • 2. Start the node program (it can run in the background after it can be synchronized normally after startup).
    ./geth --syncmode "full" --verbosity 1
  • 3. Enter the interactive interface to perform related operations.
    ./geth attach
  • 4. Query block height
    eth.blockNumber
  • 5. Query other node information
    admin.peers
  • 4. Enable RPC
    admin.startRPC("0.0.0.0",8545)
portfolio-img

(2) Build Node

Binaries that automatically register nodes
GitHub: https://github.com/Krishnaproject2022/tools

  • 1. Prepare two wallets A and B in advance. Reserve 10 KSAs in wallet A as node mining wallets. 2010 KSAs are reserved in wallet B for registration node operations, 1000 are registered for 1000 delegations, and the number of delegations will be increased if delegations are required.
  • 2. Modify the configuration file.
    (1)open: conf/main.toml
    (2)modify: validator = (wallet A address)
    (3)modify: node_name = (node name)
    (4)Need to be delegated can be modified: open_deposit = true
    (5)deposit_amount = amount of delegated
  • 3. Start the NodeRegister program.
    msg="Please enter the wallet private key"
    (Enter the private key of wallet B)
portfolio-img