Installation
Prepare your new worker address key, there is 2 easy way you can do:
Using Geth
Download Geth, select the installation packages of various versions applicable to different systems.
Unzip the downloaded installation package
Enter the unzipped directory
Use. / get account new -- keystore. / keystore to generate Ethereum account and keystore
You will be prompted to enter the password and confirm the password. Please remember this password for late use.
Example:
Please save your keystore file, on this example file name "UTC--2022-09-13T01-14-32.465358210Z--8b1819341bec211a45a2186c4d0030681ccce0ee".
Using Eth-Vanity
Go to https://vanity-eth.tk , scroll down, enter any prefix or suffix (using 1-3 char are good, if using too many char on prefix/suffix, your pc could be slowing down and the process could never getting complete). After generated, you'll see your address and private key (save it all). Also click on SAVE button, a popup will appear, insert your password and save the UTC keystore file.
Preparing Dependencies & Download NuLink worker
install docker, you can check how to install here: https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository
Pull the latest NuLink image.
Create a directory in your host machine for later usage.
Copy the keystore file of the Worker account to the host directory selected in step 3. The private file generated by NuLink Worker will also be stored in this directory.
Please ensure that this directory has 777 permissions:
Export Node Environment Variables
Select a password with at least 8 characters to lock and unlock the private storage created by the NuLink Worker. It's important to remember this password for future access.
This password is used to unlock the keystore file of your Worker account. You would have established this password when creating the Worker account via Geth. Make sure you enter the same one!!!
Initialize Node Configuration
This step creates and stores the NuLink worker node configuration, and only needs to be run once.
Replace the following values with your own value:
</path/to/host/machine/directory>
- The host directory you create when install.<ETH KEYSTORE URI>
- The path to the keystore file of the Worker account.<NULINK PROVIDER URI>
- The URI of a local or hosted node where the Horus network launched.<NULINK NETWORK NAME>
- The name of the network where the Horus network launched.<PAYMENT PROVIDER URI>
- The URI of a local or hosted node where payment goes.<PAYMENT NETWORK NAME>
- The name of the payment network.<OPERATOR ADDRESS>
- The address of the Worker account. How to generate Worker account.<GWEI>
(Optional) - The maximum price of gas to spend on any transaction.
Example Input:
Preparing some tBNB and NLK test token
Claim some tBNB from https://testnet.binance.org/faucet-smart or their discord faucet channel.
Claim 10 NLK testnet from https://dashboard.testnet.nulink.org/
The claiming process of NLK testnet need some tBNB as gas fees, so please claim tBNB first before claiming NLK testnet.
Launch the Node
The following command will start the node. Make sure you use the same host directory as the configuration.
Remark1: You need to claim some BNB(test) token for Worker account as gas fee.
Remark2: If you encounter error when starting Worker node, first please check that the port 9151 has not been occupied by other process. If still not working, please check there is only one configuration json file in the </path/to/host/machine/directory>
Example Input:
Example Output:
Check Node Status for Worker Account
The following command describes how to view worker status.
Example Input:
Example Output:
Now the Worker address(e.g: 0x8B1819341BEc211a45a2186C4D0030681cccE0Ee) is ready for bonding operation.
Restart the Worker Node
Occasionally, the staker may find it necessary to restart the worker node. Below is the command for restarting the currently running nodes:
Note: please use command: docker ps to get your container id.
Update in docker environment
Make sure you still hold your staking account and worker account. The update in docker is simple: stop the node, pull the latest image and restart the node.
Stop the running node in Docker:
Delete the container:
Pull the latest NuLink image.
Re-launch the worker node.
Upd
Last updated