fastMPC Testing Node Upgrade Guide

Multichain (Previously Anyswap)
3 min readAug 23, 2022

--

Linux experience will be useful for this task. The instructions here are valid for an Ubuntu setup with version 20.04 or higher ( #lsb_release -a ), though it will most likely work with 18.04. Minimum specification of machine is at least 2 CPU cores, 4 CPU cores and above are recommended, and 8 GB RAM 80 GB disk with fast and stable internet access, preferably at least 2M bandwidth. It is recommended to use a VPS such as from AWS, Hetzner, Contabo, etc. rather than a home machine.

  • Installation of the Node

The node is installed using a Docker image. The installation starts the MPC service. If you are cutting and pasting commands from here, please do not include the # at the beginning of each command, which is only used to indicate the command prompt.

  1. Install Docker Image

Start by updating the package list and installing Docker (if you have already installed docker, you can skip this step):-

# sudo apt update

# sudo apt install docker.io

2. Run the MPC Node

Before you start, you need to make sure that your VPS has port 5916 (in this case is 5916, it can be different for you) open. You may need to go to your firewall settings and open this for TCP and UDP.

If you have started the docker image with the name of gsmpc before, you need to kill the old gsmpc container and wait 2 minutes before updating the new docker image:

If you have already started a fastMPC node,please kill and rm the old gsmpc container first (you can run `docker ps` command to check the old 7.1.0-beta):

# sudo docker kill gsmpc

# sudo docker container rm gsmpc

# sudo docker rmi anyswap/fastmpcnode:7.2.0-beta

# sudo docker pull anyswap/fastmpcnode:7.2.0-beta

Notice: do NOT delete your gsmpc enode’s node.key file, it will lose all node data.

Start the docker:

# sudo mkdir /var/lib/docker/gsmpc -p

# sudo docker run -d --name gsmpc --network host --restart always -v /var/lib/docker/gsmpc:/gsmpc anyswap/fastmpcnode:7.2.0-beta --port 48516 --rpcport 5916

3. Here you need to make sure that the node is running and copy the URL of your node. Running the command below, then you will see if the node is running.

# sudo cat /var/lib/docker/gsmpc/log/gsmpc.log

If your node is running correctly, you will see something similar to the above. According to this case, you should ensure that the printed rpcport is equal to 5916. You need to copy the URL (here it is 1.1.1.1) and the port 5916, so the link of the RPC Service Node IN THIS CASE is http://1.1.1.1:5916. Your link will be different with this, because each link is unique.

You can also find the correct line more directly using the following command:

# grep updateRemoteIP /var/lib/docker/gsmpc/log/gsmpc.log

--

--

Multichain (Previously Anyswap)
Multichain (Previously Anyswap)

Written by Multichain (Previously Anyswap)

Cross-Chain Router Protocol (CRP), an infrastructure for cross-chain interoperability, envisioned to be the ultimate router for Web3 https://multichain.org/

No responses yet