Browse Source

Update 'README.md'

pull/11/head
onryo 3 years ago
parent
commit
81a7622161
  1. 20
      README.md

20
README.md

@ -35,21 +35,21 @@ it is better to have more than 2 nodes, I have 2 free nodes available to run dur
From your NODE1 run:
```
./hush-smart-chain -ac_name=testSHT -ac_private=1 -ac_blocktime=260 -ac_halving=420000 -ac_reward=2400000000 -ac_supply=987318 -addnode=IP2 &
./hush-smart-chain -ac_name=SHT -ac_private=1 -ac_blocktime=260 -ac_halving=420000 -ac_reward=2400000000 -ac_supply=987318 -addnode=IP2 &
```
From your NODE2 run:
```
./hush-smart-chain -ac_name=testSHT -ac_private=1 -ac_blocktime=260 -ac_halving=420000 -ac_reward=2400000000 -ac_supply=987318 -addnode=IP1 &
./hush-smart-chain -ac_name=SHT -ac_private=1 -ac_blocktime=260 -ac_halving=420000 -ac_reward=2400000000 -ac_supply=987318 -addnode=IP1 &
```
`-ac_name=testSHT` - name
`-ac_name=SHT` - name
`-ac_private=1` - full z2z privacy feature, just like Hush or ARRR
`ac_supply=987318` - pre-mined supply
`-ac_blocktime=260` + `-ac_halving=420000` + `-ac_reward=2400000000` makes testSHT with block time of 260 seconds and halving every 420000 blocks with initial reward of 24 testSHT.
`-ac_blocktime=260` + `-ac_halving=420000` + `-ac_reward=2400000000` makes SHT with block time of 260 seconds and halving every 420000 blocks with initial reward of 24 SHT.
# Compare the magic number
@ -63,18 +63,18 @@ To collect all the mining rewards from the node to a single address, execute the
```
# Get a new address
newaddress=$(./hush-cli -ac_name=testSHT getnewaddress)
newaddress=$(./hush-cli -ac_name=SHT getnewaddress)
# Get the corresponding pubkey
pubkey=$(./hush-cli -ac_name=testSHT validateaddress $newaddress | jq -r '.pubkey' )
pubkey=$(./hush-cli -ac_name=SHT validateaddress $newaddress | jq -r '.pubkey' )
# Indicate the pubkey to the daemon
./hush-cli -ac_name=testSHT setpubkey $pubkey
./hush-cli -ac_name=SHT setpubkey $pubkey
```
# Enable mining
```
./hush-cli -ac_name=testSHT setgenerate true $(nproc)
./hush-cli -ac_name=SHT setgenerate true $(nproc)
```
mining is prohibited with any VPS providers, so if you're planning to use one it is safe to run with `-j 2`(?) option instead of `$(nproc)`, will be updated...
@ -83,7 +83,7 @@ mining is prohibited with any VPS providers, so if you're planning to use one it
After enabling mining, you can check that the two nodes are connected by using the following command:
```
./hush-cli -ac_name=testSHT getinfo | grep connections
./hush-cli -ac_name=SHT getinfo | grep connections
```
must be `"connections": 1`.
@ -94,7 +94,7 @@ All RPC command for Hush can be used the same way for the HSC. The total list: h
Most useful:
```
./hush-cli -ac_name=testSHT getinfo
./hush-cli -ac_name=SHT getinfo
```
# TO-DO list

Loading…
Cancel
Save