4 changed files with 98 additions and 84 deletions
@ -0,0 +1,65 @@
|
||||
### Installation on Linux |
||||
|
||||
To install everything (client and server), install these packages: |
||||
|
||||
sudo apt-get install python-dev python-pip git build-essential |
||||
automake pkg-config libtool libffi-dev libssl-dev |
||||
|
||||
(+ libsodium-dev if you can find it, else build after) |
||||
|
||||
(to build libsodium after): |
||||
|
||||
git clone git://github.com/jedisct1/libsodium.git |
||||
cd libsodium |
||||
git checkout tags/1.0.4 |
||||
./autogen.sh |
||||
./configure |
||||
make check |
||||
sudo make install |
||||
cd .. |
||||
|
||||
Then: |
||||
|
||||
sudo pip install virtualenv |
||||
mkdir jmvenv |
||||
cd jmvenv; source bin/activate; cd .. |
||||
|
||||
Install this repo in the virtualenv: |
||||
|
||||
git clone https://github.com/AdamISZ/joinmarket-clientserver |
||||
cd joinmarket-clientserver |
||||
|
||||
#### Installing packages to run everything in-one: |
||||
|
||||
python setupall.py --daemon |
||||
python setupall.py --client-bitcoin |
||||
|
||||
If you have installed this "full" version of the client, you can use it with the |
||||
command line scripts as explained in the [scripts README](https://github.com/AdamISZ/joinmarket-clientserver/tree/master/scripts). |
||||
|
||||
#### Installing the daemon separately |
||||
|
||||
Just do |
||||
|
||||
python setupall.py --daemon |
||||
|
||||
Then, you can run the daemon on its own with |
||||
|
||||
cd scripts; python joinmarketd.py <port number> |
||||
|
||||
The reason for doing this may be either (1) to run command-line scripts provided here, but |
||||
in a separate process from the daemon; or, (2) to run a separate (e.g. wallet plugin) codebase |
||||
to do the bitcoin operations. |
||||
|
||||
In the former case you will need still to install the local packages: |
||||
|
||||
python setupall.py --client-bitcoin |
||||
|
||||
and then edit your `joinmarket.cfg` section `DAEMON`, setting `no_daemon = 0`. |
||||
|
||||
The latter case applies to the Electrum plugin, see [here](https://github.com/AdamISZ/electrum-joinmarket-plugin). |
||||
|
||||
There, you need to install the client code (without Joinmarket's bitcoin): |
||||
|
||||
python setupall.py --client-only |
||||
|
||||
@ -0,0 +1,23 @@
|
||||
### Test instructions (for developers): |
||||
|
||||
This is a rough sketch, some more background is found in [JM wiki](https://github.com/Joinmarket-Org/joinmarket/wiki/Testing) |
||||
|
||||
Make sure to have bitcoind installed. Also need miniircd installed to the root dir: |
||||
|
||||
git clone https://github.com/Joinmarket-Org/miniircd |
||||
|
||||
Install the test requirements (still in your virtualenv as mentioned above): |
||||
|
||||
pip install -r requirements-dev.txt |
||||
|
||||
Curl is also needed: |
||||
|
||||
sudo apt-get install curl |
||||
|
||||
Running the test suite should be done like: |
||||
|
||||
python -m py.test --cov=jmclient --cov=jmbitcoin --cov=jmbase --cov=jmdaemon --cov-report html --btcroot=/path/to/bitcoin/bin/ --btcpwd=123456abcdef --btcconf=/path/to/bitcoin.conf --nirc=2 |
||||
|
||||
(you'll first want to copy bitcoin.conf in the test/ directory to a place you choose, and |
||||
copy the regtest_joinmarket.cfg file from the test/ directory to the root directory, |
||||
both files will need minor edits for your btc configuration). |
||||
Loading…
Reference in new issue