/shinecloudnet

Primary LanguageGoOtherNOASSERTION

Shinecloudnet

Shinecloudnet establishes a next-generation distributed application based on blockchain technology.

Note: Requires Go 1.12+

Deploy Mainnet Node

  1. Get code

    git clone https://github.com/shinecloudfoundation/shinecloudnet.git
  2. Build binaries

    make build

    The generated binaries locate in build directory.

  3. Init mainnet node PathToNodeHomeDirectory

    ./build/scloud init {node name} --home {PathToNodeHomeDirectory}
  4. Get mainnet genesis file

    wget https://raw.githubusercontent.com/shinecloudfoundation/shinecloudnet-binary/master/shinecloudnet-mainnet/genesis.json -O {PathToNodeHomeDirectory}/config/genesis.json
  5. Get mainent configuration file: networkConfig.json

    wget https://raw.githubusercontent.com/shinecloudfoundation/shinecloudnet-binary/master/shinecloudnet-mainnet/networkConfig.json -O networkConfig.json
  6. Edit {PathToNodeHomeDirectory}/config.toml to config seeds and persistent_peers according to networkConfig.json

     # Comma separated list of seed nodes to connect to
     seeds = ""
     
     # Comma separated list of nodes to keep persistent connections to
     persistent_peers = ""
  7. Edit {PathToNodeHomeDirectory}/app.toml to change the upgrade heights according to networkConfig.json

     [upgrade]
     # Upgrade to change reward rules
     RewardUpgrade = 9223372036854775807
     
     # Upgrade to change reward rules
     TokenIssueHeight = 9223372036854775807
     
     # Upgrade to update voting period
     UpdateVotingPeriodHeight = 9223372036854775807
  8. Edit {PathToNodeHomeDirectory}/app.toml to config minimum gas prices

    minimum-gas-prices = ""

    Recommended value: 0.01uscds

  9. Start mainnet node

    nohup ./build/scloud start --home {PathToNodeHomeDirectory} &
  10. Check running log

    tail -f nohup.out