Skip to content

Instantly share code, notes, and snippets.

@profOnno
Last active December 31, 2015 11:13
Show Gist options
  • Save profOnno/aaedb7f9530ad2e0ec0b to your computer and use it in GitHub Desktop.
Save profOnno/aaedb7f9530ad2e0ec0b to your computer and use it in GitHub Desktop.
Setup counter-party in docker

Install

ubuntu as base

guides used:

https://counterpartytalk.org/t/counterparty-client-testnet-on-raspbian/1321 https://gist.github.com/JoshuaEstes/4065993 http://counterparty.io/docs/bitcoin_core/

Setup bitcoin wallet

tar -xzvf bitcoin-0.11.2-addrindex-linux64.tar.gz

rpcuser=bitcoinrpc
rpcpassword=<password>
server=1
daemon=1
rpcthreads=1000
rpctimeout=300
txindex=1
addrindex=1
minrelaytxfee=0.00005
limitfreerelay=0

Update the index bitcoind -testnet -reindex

Counter party

apt-get install vim wget git gcc python3dev (libssl-dev) It seems python is has got to much different installing methods. And not added to linux distribution repository (at least not on ubuntu)

wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py
sudo python3 get-pip.py

(from https://pythonadventures.wordpress.com/tag/pip3/)

python3 get-pip.py
git clone https://github.com/CounterpartyXCP/counterparty-cli.git
cd counterparty-cli
pip3 install pytest --upgrade
pip3 install -r requirements.txt
python3 setup.py install

after pip3 install -r requirements.txt still go errors... run again then ok .. hmmm better to first do the export PYTHONIOEncodying.

Then you get the encoding errors

export PYTHONIOENCODING=utf-8

Will fix that for now. Python unicode has more info on unicode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment