Skip to content

Instantly share code, notes, and snippets.

@visvirial
Last active November 18, 2016 04:36
Show Gist options
  • Save visvirial/b998a69e43b62a786813243781c9bbcf to your computer and use it in GitHub Desktop.
Save visvirial/b998a69e43b62a786813243781c9bbcf to your computer and use it in GitHub Desktop.
# Install
* OS: Ubuntu 16.10 Yakkety amd64 Desktop
* Ubuntu-provided `python-click` package should be removed since the version is too old.
## Install addrindex-patched Bitcoin Core
Counterparty requires so-called "addrindex-patched" version of Bitcoin Core.
https://github.com/btcdrak/bitcoin/releases
The following configs should be added to your bitcoin.conf.
```
txindex=1
addrindex=1
```
## Install python-bitcoinlib
`counterparty-lib` requires obsolate version (0.5.1) of `python-bitcoinlib` which is not listed in the official pip repository.
We will install it via GitHub repo.
```
$ git clone https://github.com/petertodd/python-bitcoinlib.git
$ cd python-bitcoinlib
$ git checkout python-bitcoinlib-v0.5.1
$ python3 ./setup.py build
$ python3 ./setup.py install --user
```
## Install counterparty-lib
```
$ git clone https://github.com/CounterpartyXCP/counterparty-lib.git
$ cd counterparty-lib
$ pip3 install -r requirements.txt --user
$ python3 ./setup.py build
$ python3 ./setup.py install --user
```
## Install counterparty-cli
```
$ git clone https://github.com/CounterpartyXCP/counterparty-cli.git
$ cd counterparty-cli
$ pip3 install -r requirements.txt --user
$ python3 ./setup.py build
$ python3 ./setup.py install --user
```
# Setup
```
$ counterparty-server bootstrap
```
# Configure
Edit `~/.config/counterparty/server.conf` and set the Bitcoin Core RPC user/pass.
# Run
```
$ counterparty-server start
```
# Test
```
$ counterparty-cli asset CNPCOIN
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment