@ -77,4 +77,37 @@ In the above string, take note of the p2p and RPC ports, as well as the magic nu
In the example above, the p2p port is `6969`. Make sure that the p2p port is open to the internet or any other network from which the second node connects.
This completes the first half of the Smart Chain creation process.
This completes the first half of the Smart Chain creation process.
## Part II: Connecting the Second Node
On the second node you issue the same command, but with a key difference. This time, use the first node's IP address.
Once the daemon loads, compare the string that starts with `>>>>>>>>>>` in the second node to the one from the first node to make sure they are identical.
Mining can be started on a node using the following command:
`$(nproc)` in the above command makes the daemon mine using all the available CPU threads, which might be necessary in a low end VPS.
On a Hush-based blockchain, all of the pre-mined coins are mined in the first block. Therefore, whichever machine executes the mining command will receive the entirety of the blockchain's pre-mined coin supply, as set in the `ac_supply` parameter. Upon mining the first block, these coins are available in the default `wallet.dat` file.
To collect all the mining rewards from the node to a single address, execute the following commands before issuing the `setgenerate` command: