Skip to content

Instantly share code, notes, and snippets.

@visvirial
Last active November 18, 2016 04:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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