Server setup

Below you find detailed instruction on how to install MetaHash network Proxy.

📘

Please note that forging is currently running on test mode, and it works in testnet. Please do not transfer your #MHC to #TMH wallet.

Source code and build

Proxy Node software written in C++, find it on Git repo node_proxy. You can download and build it - Readme file (see Build section) contains detailed instruction on how to build project on Ubuntu 14.04 x64.
Pre-built binary for Ubuntu 14/16/18 also available here https://github.com/metahashorg/node_proxy/releases.

Run Proxy

To run Proxy Node prepare:

  1. file with private key in HEX format
$ cat proxy_key

30770211110420f9a9054ca699c38de747e9f6626fb3d4d87b4d02ef111e8e284d7f8e018afd6da00a06082a8648ce3d030107a14403420004886d9fe32423473984eb0c6782c69e64d08e33c1c89c74d3925dab93c73aff72b670f482e2f753f9f7811198f37abe8fa873d8afc665a5801a183246cc999dcс
  1. config file “proxy_config”, e.g:
    net-dev
    X.X.X.X 9999 64
    Y.Y.Y.Y 9999 256

where
net-dev - network name;
X.X.X.X - verif IP address, to get a list of available verifs, you need to resolve DNS address verif.net-dev.metahashnetwork.com. To find out more, see the article (https://developers.metahash.org/hc/en-us/articles/360008219634);
9999 - port number; verifs respond to port 9999;
64 - connections amount, it may vary from 1 to any amount allowed for this verif.

  1. to run Proxy, create script as follows:
./proxy proxy_key proxy_config 9999 1000000 > proxy.log &```

where 
proxy_key and proxy_config are described above;
9999 - port, port 9999 is recommended, but you may set any local port your proxy will run on;

1000000 - string length (any positive number, it’s better to use larger value).

Running ```start_test.sh``` shell script will start Proxy Node with all parameters set above.

Please note: You need to restart proxy service to apply config changes.



[block:api-header]
{
  "title": "Did not work out?"
}
[/block]

Please do not hesitate to join the chat for discussion in the telegram - https://t.me/joinchat/Ctcl30rUVoWmsUmxSsViog