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. Pull the latest BasicSwap updates from Github.

    git pull
    
  4. 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
    
  5. Apply the updates you’ve pulled from Github to your docker image.

    docker-compose build
    

    If BasicSwap’s dependencies have changed, the update must be applied with the –no-cache argument.

    docker-compose build --no-cache
    
  6. 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=/Users/$USER/coinswaps
    . $SWAP_DATADIR/venv/bin/activate && python -V
    
  3. Navigate to your BasicSwap folder.

    cd $SWAP_DATADIR/basicswap
    
  4. Pull the latest BasicSwap updates from Github.

    git pull
    
  5. 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