Update BasicSwap

BasicSwap DEX is an open-source work in progress, and, as such, constant and regular updates are to be expected.

To benefit from new features, improvements, and bug fixes, it is recommended that you update your BasicSwap instance frequently.

This guide will show you how to update BasicSwap properly.



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 to the most up-to-date version.

  1. Navigate to your BasicSwap’s docker folder (where BasicSwap is installed).

    cd basicswap/docker
    
  2. Make sure BasicSwap is stopped.

    docker-compose stop
    
  3. Make sure you’re on the correct repository (has recently been changed).

    git remote set-url origin https://github.com/basicswap/basicswap
    
  4. Pull the latest BasicSwap updates from Github.

    git pull
    
  5. If you haven’t set your COINDATA_PATH variable permanently in your .env file, you’ll need to export the variable first.

    export COINDATA_PATH=/var/data/coinswaps
    
  6. Apply the updates you’ve pulled from Github to your docker image.

    docker-compose build --no-cache
    
  7. Launch BasicSwap

    docker-compose up
    

Attention

If updating from versions below 0.21, you may need to add wallet=wallet.dat to the core config.

Update Without Docker

If you’ve built BasicSwap without using the Docker method, follow these steps to update your instance to the most up-to-date version.

Tip

For Linux users, updating BasicSwap and the coin cores you’ve enabled is simplified through community-developed scripts available here on Github.

Update BasicSwap to the most up-to-date version.

  1. Properly shutdown BasicSwap.

  2. Prepare your BasicSwap to receive updates by executing these two commands one by one.

    export SWAP_DATADIR=$HOME/coinswaps
    . $SWAP_DATADIR/venv/bin/activate && python -V
    
  3. Navigate to your BasicSwap folder and clear build cache.

    cd $SWAP_DATADIR/basicswap
    rm -rf $SWAP_DATADIR/basicswap/build
    
  4. Make sure you’re on the correct repository (has recently been changed).

    git remote set-url origin https://github.com/basicswap/basicswap
    
  5. Pull the latest BasicSwap updates from Github.

    git pull
    
  6. Apply the updates to your BasicSwap instance

    pip3 install .
    

Attention

If updating from versions below 0.21, you may need to add wallet=wallet.dat to the core config.


See also