DHC Node Setup

Create Wallet Account

You can create a new wallet address directly within the browser plugin wallet like MetaMask and export the private key for later use.

Remote SSH server login

To log into the SSH server via the account password set when purchasing the server and the public IPv4 address automatically assigned to the instance by the cloud service provider.

Option 1. The built-in system terminal:

  • For Mac systems and native Linux systems, you can use the built-in terminal simulator to log in.

  • For Windows systems, you can use the built-in PowerShell tool to log in. You need to run PowerShell as administrator and install the OpenSSH plugin. The plugin installation tutorial link is as Get started with OpenSSH for Windows

login Method: After opening the terminal, enter "ssh username@public IP address" (e.g. ssh [email protected]), then enter the password according to the prompt to complete the login.

Option 2. The third-party SSH login tools:

Third-party SSH login tools such as Xshell, PuTTY, SimpleRemote, Terminus, etc. You can refer to the relevant product tutorials to log in by yourself.

Option 3. The built-in server method of cloud service:

Different cloud service providers may provide their online server management consoles, through which you can log in graphically, such as logging in to EC2 instances on Amazon Web Services through the EC2 console page. Please refer to the help documents provided by each cloud service provider.

Install runtime environment

Create a node storage directory and startup file

Synchronizing blocks will take more time, and we provide snapshots to speed up chain startup. Reference run a chain via snapshot.

Some of the built-in terminals will recognize space characters as indent characters during code copying, which may lead to YAML program runtime errors. Please check and replace it.

Configure the sgx server

Modify keyring.toml configuration file

Please check out the latest DHC bootnodes here in advance and do the replacement if changed.

external_multiaddrs: Exposing the server's external IP is important, thereby increasing the reward.

Modify sgx_default_qcnl.conf file

Modify docker-compose file (Optional)

You need to change the configuration here and replace the "<version_no>" underneath only when the official image version is updated, please refer to this link for the exact version information.

Before changing version numbers, make sure your device is in Standby status, or not registered. Otherwise, you will be punished.

The latest version of the image is: v0.12.20

Start DHC Node Service

Update Device Version

Please maintain your image of the DHC server by updating it with the latest official version.

You can follow this step by step:

1. Exit the service

Device upgrades must be performed on "Standby" status.

If the device is on "Serving" status, it must be exited before starting the upgrade. If the device is on "Exiting" status, wait up to one day until the process is complete before proceeding.

2. Update the script file

Then check out the version of your device on the Node Explorer.

3. Rejoin the service

You can join the service again after all the steps above are done and wait until the device changes to "Serving" status.

4. Remove backup data (Optional)

Case Study

If you're facing problems in the setup process, try to find a solution here.

Last updated