Three bitcoin clients are used for InterOperability testing
-
Enter the following command for cashInterop project, which has submodules in it. Replace username with your github username
$ git clone https://github.com/username/cashInterop.git
-
Change directory to cashInterop, and enter the following command to initialize and fetch the submodules.
$ git submodule update --init --recursive
Note: ABC submodule now points to development branch which contains latest changes (see URL from .gitmodules). If you encounter problem on accessing this branch, please execute the helper script in next step.
-
Execute the following step to fallback to the master branch of ABC in github
$ ./update-submodules.sh
Alternatively, you may also follow steps 4 to 8 to manually fallback to the ABC github branch.
-
Change directory to cashInterop, and enter the following command to clone the ABC submodule
$ git clone https://github.com/Bitcoin-ABC/bitcoin-abc.git abc
-
Initialize and fetch the BU and XT submodules with
$ git submodule update --init --recursive bucash xt
-
Change directory to bucash. Check out and pull the 'dev' branch for BU submodule
$ cd bucash $ git checkout dev && git pull --ff origin dev
-
Change directory to abc. Check out the 'master' branch for ABC
$ cd ../abc $ git checkout master && git pull --ff origin master
-
Change directory to xt, and check out the 'master' branch for XT
$ cd ../xt $ git checkout master && git pull --ff origin master
Make sure all package dependencies are installed (see Quick installation instructions section in BitcoinUnlimited).
Both BU and XT may fail to build because of missing package dependencies of libgoogle-perftools-dev, and libcurl4-openssl-dev respectively.
-
Since --enable-gperf is enabled in the Makefile for BU, install dependency by
$ sudo apt-get install libgoogle-perftools-dev
-
Build requirements for XT
$ sudo apt-get install libcurl4-openssl-dev
-
Download and install Base58 for converting bitcoin cash legacy addresses. "base58-0.2.5-py3-none-any.whl"
$ sudo apt install python3-pip $ pip3 install base58-0.2.5-py3-none-any.whl
-
Building individual client (i.e. bu, xt or abc)
$ make bu $ make xt $ make abc
-
Building all three clients
$ make all
-
Verify client executables (bitcoind and bitcoin-cli) are built successfully within debug folder
$ ls -la bucash/debug/src/bitcoin* $ ls -la xt/debug/src/bitcoin* $ ls -la abc/debug/src/bitcoin*
-
All available tests are located in the test folder. Default folder location for storing bitcoin data and log files is set to /tmp/cashInterop
-
You can overwrite this location by using option --tmpdir=<folder_location>. Please note that no space is allowed before and after the equal sign. Second example below creates folder "testlogs" in the same place as the script.
$ ./example_test.py --tmpdir=/tmp/logfolder $ ./example_test.py --tmpdir=testlogs