Shinecloudnet
Shinecloudnet establishes a next-generation distributed application based on blockchain technology.
Note: Requires Go 1.12+
Deploy Mainnet Node
-
Get code
git clone https://github.com/shinecloudfoundation/shinecloudnet.git
-
Build binaries
make build
The generated binaries locate in build directory.
-
Init mainnet node PathToNodeHomeDirectory
./build/scloud init {node name} --home {PathToNodeHomeDirectory}
-
Get mainnet genesis file
wget https://raw.githubusercontent.com/shinecloudfoundation/shinecloudnet-binary/master/shinecloudnet-mainnet/genesis.json -O {PathToNodeHomeDirectory}/config/genesis.json
-
Get mainent configuration file:
networkConfig.json
wget https://raw.githubusercontent.com/shinecloudfoundation/shinecloudnet-binary/master/shinecloudnet-mainnet/networkConfig.json -O networkConfig.json
-
Edit
{PathToNodeHomeDirectory}/config.toml
to configseeds
andpersistent_peers
according tonetworkConfig.json
# Comma separated list of seed nodes to connect to seeds = "" # Comma separated list of nodes to keep persistent connections to persistent_peers = ""
-
Edit
{PathToNodeHomeDirectory}/app.toml
to change the upgrade heights according tonetworkConfig.json
[upgrade] # Upgrade to change reward rules RewardUpgrade = 9223372036854775807 # Upgrade to change reward rules TokenIssueHeight = 9223372036854775807 # Upgrade to update voting period UpdateVotingPeriodHeight = 9223372036854775807
-
Edit
{PathToNodeHomeDirectory}/app.toml
to config minimum gas pricesminimum-gas-prices = ""
Recommended value:
0.01uscds
-
Start mainnet node
nohup ./build/scloud start --home {PathToNodeHomeDirectory} &
-
Check running log
tail -f nohup.out