basicswap/doc/upgrade.md

50 lines
1.2 KiB
Markdown
Raw Normal View History

## Update basicswap version
### Docker
2023-03-30 07:28:50 +00:00
First ensure that docker is running.
If `docker ps` returns an error try:
sudo systemctl start docker
Update only the code (prepend sudo to each docker command if necessary):
basicswap]$ git pull
2023-03-30 07:28:50 +00:00
cd docker
docker-compose build
docker-compose up
If the dependencies have changed the container must be built with `--no-cache`:
basicswap]$ git pull
2023-03-30 07:28:50 +00:00
cd docker
docker-compose build --no-cache
docker-compose up
2020-12-31 08:01:01 +00:00
#### Update core versions
After updating the code and rebuilding the container run:
2020-12-31 08:01:01 +00:00
2024-02-12 19:49:24 +00:00
basicswap/docker]$ docker-compose run --rm swapclient \
basicswap-prepare --datadir=/coindata --preparebinonly --withcoins=monero,bitcoin
2020-12-31 08:01:01 +00:00
Specify all required coins after `--withcoins=`, separated by commas.
If updating from versions below 0.21, you may need to add `wallet=wallet.dat` to the core config files.
2020-12-31 08:01:01 +00:00
## If installed through pip:
2021-01-02 21:04:29 +00:00
$ export SWAP_DATADIR=/Users/$USER/coinswaps
$ . $SWAP_DATADIR/venv/bin/activate && python -V
$ cd $SWAP_DATADIR/basicswap
$ git pull
$ pip3 install .
2020-12-31 08:01:01 +00:00
#### Update core versions
2021-12-28 11:54:26 +00:00
basicswap-prepare --datadir=$SWAP_DATADIR -preparebinonly --withcoins=monero,bitcoin