2019-08-04 13:22:25 +00:00
|
|
|
|
|
|
|
## Update basicswap version
|
|
|
|
|
2020-12-16 21:19:39 +00:00
|
|
|
### Docker
|
|
|
|
|
|
|
|
Update only the code:
|
|
|
|
|
|
|
|
basicswap]$ git pull
|
|
|
|
$ cd docker
|
|
|
|
$ export COINDATA_PATH=[PATH_TO]
|
2022-07-31 17:33:01 +00:00
|
|
|
$ docker-compose build
|
2020-12-16 21:19:39 +00:00
|
|
|
$ docker-compose up
|
|
|
|
|
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
|
|
|
|
$ cd docker
|
|
|
|
$ export COINDATA_PATH=[PATH_TO]
|
2022-07-31 17:33:01 +00:00
|
|
|
$ docker-compose build --no-cache
|
2020-12-16 21:19:39 +00:00
|
|
|
$ docker-compose up
|
|
|
|
|
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
|
|
|
|
2021-01-18 11:16:52 +00:00
|
|
|
basicswap/docker]$ export COINDATA_PATH=[PATH_TO]
|
|
|
|
$ docker-compose run --rm swapclient \
|
|
|
|
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
|
|
|
|
$ 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
|