mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-05 10:28:10 +01:00
XMR withdrawals work.
spendBLockTx uses sweep_all.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
|
||||
## Prerequisites
|
||||
## Source code
|
||||
|
||||
$ sudo apt-get install git python3-pip protobuf-compiler
|
||||
$ git clone https://github.com/tecnovert/basicswap.git
|
||||
|
||||
|
||||
@@ -10,46 +9,71 @@
|
||||
Docker must be installed and started:
|
||||
$ sudo systemctl status docker | grep Active
|
||||
|
||||
Should return a line containing:
|
||||
`active (running)`
|
||||
Should return a line containing `active (running)`
|
||||
|
||||
|
||||
Create the images:
|
||||
|
||||
$ cd basicswap/docker
|
||||
$ docker-compose build
|
||||
|
||||
Prepare the datadir:
|
||||
Set XMR_RPC_HOST and BASE_XMR_RPC_PORT to a public XMR node or exclude to run a local node.
|
||||
|
||||
$ export SWAP_DATADIR=/var/data/coinswaps
|
||||
$ docker run -e XMR_RPC_HOST="node.xmr.to" -e BASE_XMR_RPC_PORT=18081 -t --name swap_prepare -v $SWAP_DATADIR:/coindata i_swapclient \
|
||||
basicswap-prepare --datadir=/coindata --withcoins=monero --withoutcoins=litecoin --htmlhost="0.0.0.0" --xmrrestoreheight=2245107
|
||||
|
||||
Record the mnemonic from the output of the above command.
|
||||
|
||||
Remove swap_prepare container (and logs):
|
||||
|
||||
$ docker rm swap_prepare
|
||||
|
||||
|
||||
Start the container
|
||||
|
||||
$ export SWAP_DATADIR=/var/data/coinswaps
|
||||
$ docker-compose up
|
||||
|
||||
You may need to run docker-compose with sudo, unless you've setup docker
|
||||
to be able to run from user accounts.
|
||||
Open in browser: `http://localhost:12700`
|
||||
|
||||
|
||||
By default the data dir will be basicswap/docker/coindata
|
||||
## Run Without Docker:
|
||||
|
||||
To run with a different data directory run:
|
||||
$ apt-get install -y wget python3-pip gnupg unzip protobuf-compiler automake libtool pkg-config
|
||||
|
||||
$ export COINDATA_PATH=/tmp/part_swap_test/coindata
|
||||
|
||||
And copy the initial config there:
|
||||
|
||||
$ cp -r docker/coindata /tmp/part_swap_test/coindata
|
||||
|
||||
Before running docker-compose build
|
||||
$ export SWAP_DATADIR=/var/data/coinswaps
|
||||
$ mkdirs -p "$SWAP_DATADIR/venv"
|
||||
$ python3 -m venv "$SWAP_DATADIR/venv"
|
||||
$ . $SWAP_DATADIR/venv/bin/activate && python -V
|
||||
$ wget -O coincurve-anonswap.zip https://github.com/tecnovert/coincurve/archive/anonswap.zip
|
||||
$ unzip coincurve-anonswap.zip
|
||||
$ cd coincurve-anonswap
|
||||
$ python3 setup.py install --force
|
||||
|
||||
|
||||
## Install as Python Module with PIP
|
||||
|
||||
$ cd $SWAP_DATADIR
|
||||
$ git clone https://github.com/tecnovert/basicswap.git
|
||||
$ cd basicswap
|
||||
$ protoc -I=basicswap --python_out=basicswap basicswap/messages.proto
|
||||
$ pip3 install .
|
||||
$ basicswap-prepare
|
||||
$ basicswap-run
|
||||
|
||||
Prepare the datadir:
|
||||
|
||||
XMR_RPC_HOST="node.xmr.to" BASE_XMR_RPC_PORT=18081 basicswap-prepare --datadir=$SWAP_DATADIR --withcoins=monero --withoutcoins=litecoin --xmrrestoreheight=2245107
|
||||
|
||||
Record the mnemonic from the output of the above command.
|
||||
|
||||
Start the app
|
||||
|
||||
$ basicswap-run --datadir=$SWAP_DATADIR
|
||||
|
||||
Open in browser: `http://localhost:12700`
|
||||
|
||||
|
||||
By default the data dir will be `~/.basicswap`
|
||||
To run in a different directory and on testnet:
|
||||
```
|
||||
$ basicswap-prepare -datadir=~/part_swap_test -testnet
|
||||
$ basicswap-run -datadir=~/part_swap_test -testnet
|
||||
```
|
||||
|
||||
Old notes
|
||||
=============
|
||||
|
||||
## Run Without Installing
|
||||
|
||||
|
||||
Reference in New Issue
Block a user