2019-08-04 13:22:25 +00:00
|
|
|
|
|
|
|
## Update basicswap version
|
|
|
|
|
2020-12-16 21:19:39 +00:00
|
|
|
### 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):
|
2020-12-16 21:19:39 +00:00
|
|
|
|
|
|
|
basicswap]$ git pull
|
2023-03-30 07:28:50 +00:00
|
|
|
cd docker
|
|
|
|
docker-compose build
|
|
|
|
docker-compose up
|
2020-12-16 21:19:39 +00:00
|
|
|
|
2021-02-14 14:53:44 +00:00
|
|
|
If the dependencies have changed the container must be built with `--no-cache`:
|
2020-12-16 21:19:39 +00:00
|
|
|
|
|
|
|
basicswap]$ git pull
|
2023-03-30 07:28:50 +00:00
|
|
|
cd docker
|
|
|
|
docker-compose build --no-cache
|
|
|
|
docker-compose up
|
2020-12-16 21:19:39 +00:00
|
|
|
|
2021-02-14 14:53:44 +00:00
|
|
|
|
2020-12-31 08:01:01 +00:00
|
|
|
#### Update core versions
|
2020-12-16 21:19:39 +00:00
|
|
|
|
2021-01-16 21:01:23 +00:00
|
|
|
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 \
|
2021-01-18 11:16:52 +00:00
|
|
|
basicswap-prepare --datadir=/coindata --preparebinonly --withcoins=monero,bitcoin
|
2020-12-31 08:01:01 +00:00
|
|
|
|
|
|
|
|
2021-01-16 21:01:23 +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:
|
2019-08-04 13:22:25 +00:00
|
|
|
|
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
|
2024-10-10 17:54:15 +00:00
|
|
|
$ pip3 install -r requirements.txt --require-hashes && pip3 install .
|
2019-08-04 13:22:25 +00:00
|
|
|
|
|
|
|
|
2020-12-31 08:01:01 +00:00
|
|
|
#### Update core versions
|
2019-08-04 13:22:25 +00:00
|
|
|
|
2021-12-28 11:54:26 +00:00
|
|
|
basicswap-prepare --datadir=$SWAP_DATADIR -preparebinonly --withcoins=monero,bitcoin
|