Update your Multi-party Computation (MPC) version to ensure optimal functionality and compatibility with the latest features and plugins. Assign a DevOps specialist from your organisation to help with deploying MPC infrastructure on AWS using the following steps.
Pre-requisites
- Ensure to back up the snapshot of EC2 and RDS. This step is crucial to help fall back to the previous version due to unexpected errors.
- Ensure that you are using the latest version of Liminal Express. Use the
curl http://localhost:8000/info
command to check your current Liminal Express version. The version should be the latest as per the Liminal Express API changelog document.
Take the following steps to update your MPC version.
- Stop and remove the existing MPC and Liminal Express containers which are running in Docker.
To stop and remove the Docker containers, run the following commands in your command line tool, replacingcontainer_id
with your actual container ID.
# docker ps
# docker stop container_id_1 && docker rm container_id_1
# docker stop container_id_2 && docker rm container_id_2
- Update the
config.toml
file by replacing the IP address inPlayers.1
with52.34.93.184
, as shown in the following screenshot.
- Replace the MPC Docker image in the
docker-compose.yml
file with the following image.
nexus.sepior.net:19001/tsm-node:62.2.2
Your final docker-compose.yml
file should look like the following:
version: "3.8"
services:
node0:
restart: always
image: nexus.sepior.net:19001/tsm-node:62.2.2
ports:
- "8000:8000"
- "9000:9000"
networks:
- tsm
environment:
- CONFIG_FILE=/config/config.toml
volumes:
- ./config/config.toml:/config/config.toml
networks:
tsm:
- Update the
express.sh
file by replacing the existingTSM_VERSION
value with62
in the file.
- Pull and run the MPC Docker image specified in the
docker-compose.yml
file using the following command.
# docker compose up -d
Note
- Run the following command only if there are permission issues in pulling the new MPC image.
echo "3nlP91DZTIVZCe4BPvViE1uUiawWN6xr" | /usr/bin/docker login nexus.sepior.net:19001 --username=shivam --password-stdin
- Run the Liminal Express container using the following command to execute the Liminal SDK.
./express.sh
- Check the logs of both containers for errors if any.
# docker ps
# docker logs container_id_1
# docker logs container_id_2
- Notify Liminal to update the MPC node version associated with your API user's public key to version
62
. - Perform a test transaction to verify if everything is working as expected.