BasicSwap Update Guide
BasicSwap DEX is under active open-source development, with frequent releases introducing new features, improvements, and critical bug fixes. Maintaining your installation with regular updates ensures optimal performance and security.
This guide provides step-by-step instructions for properly updating your BasicSwap instance to the latest version.
Update a Docker Image
If you've built BasicSwap using the Docker method, follow these steps to update your instance to the most up-to-date version.
- Update BasicSwap
- Update Coin Core Versions
- Navigate to your BasicSwap's Docker folder (where BasicSwap is installed).
cd basicswap/docker
- Stop the BasicSwap Docker image.
docker-compose stop
- Make sure you're on the correct repository.
git remote set-url origin https://github.com/basicswap/basicswap
- Pull the latest BasicSwap updates from Github.
git pull
- Apply the updates to your Docker image.
docker-compose build --no-cache
- Launch BasicSwap
docker-compose up
To update the core versions of cryptocurrencies enabled in your BasicSwap installation, first ensure BasicSwap itself is running the latest version. This prerequisite is essential, as the coin core update process depends on components from the main BasicSwap codebase.
-
Update your BasicSwap instance to the latest version.
-
Navigate to your BasicSwap docker folder (where your BasicSwap docker image is located).
cd basicswap/docker
- Stop the BasicSwap Docker image.
docker-compose stop
- Apply coin core updates to your docker image. Make sure to write what coin core(s) you want to update using the
--withcoins
argument.
docker-compose run --rm swapclient \
basicswap-prepare --datadir=/coindata --preparebinonly --withcoins=monero,bitcoin
Update Without Docker
If you installed BasicSwap directly from source rather than using Docker containers, follow the steps below to update your installation to the latest version.
Linux users can simplify the update process with community-maintained automation scripts available in the basicswap-bash repository.
- Update BasicSwap
- Update Coin Core Versions
-
Properly shutdown BasicSwap.
-
Initialize the update environment by executing the following commands sequentially (one by one).
export SWAP_DATADIR=$HOME/coinswaps
. $SWAP_DATADIR/venv/bin/activate && python3 -V
- Navigate to your BasicSwap folder and clear build cache.
cd $SWAP_DATADIR/basicswap
rm -rf $SWAP_DATADIR/basicswap/build
- Make sure you're on the correct repository.
git remote set-url origin https://github.com/basicswap/basicswap
- Pull the latest BasicSwap updates from Github.
git pull
- Apply the updates to your BasicSwap instance.
pip3 install --require-hashes -r requirements.txt
pip3 install .
To update the core versions of cryptocurrencies enabled in your BasicSwap installation, first ensure BasicSwap itself is running the latest version. This prerequisite is essential, as the coin core update process depends on components from the main BasicSwap codebase.
-
Properly shutdown BasicSwap.
-
Update your BasicSwap instance to the latest version.
-
Apply coin core updates to your BasicSwap instance. Make sure to input what coin core(s) you want to update using the
--withcoins
argument.
basicswap-prepare --datadir=$SWAP_DATADIR --preparebinonly --withcoins=monero,bitcoin