From 0b6c7ba56086a3c0aa27545e9b449a23408bda5b Mon Sep 17 00:00:00 2001 From: Keir Finlow-Bates Date: Thu, 2 May 2019 10:51:45 +0300 Subject: [PATCH 1/3] Install script to simplify installing packages --- install.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 install.sh diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..daa1108 --- /dev/null +++ b/install.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +if [ -z $BASH_VERSION ] ; then + echo -e "You must run this script using bash." 1>&2 + exit 1 +fi + + +# Make sure we are running as superuser +if [[ $EUID -ne 0 ]]; then + echo -e "This script must be run using sudo." 1>&2 + exit 1 +fi + +apt-get update + +apt-get install --no-install-recommends python-virtualenv +python -m virtualenv --no-site-packages venv +source venv/bin/activate + +pip install ez_setup +apt-get install python-dev libpq-dev +easy_install hashlib +pip install plyvel +pip install base58 +easy_install pysqlite + +echo -e "Run source venv/bin/activate in your terminal before executing btcposbal2csv commands" + From 1f47e2ed5a6f71e5938e746ec9b6a77037281af8 Mon Sep 17 00:00:00 2001 From: Keir Finlow-Bates Date: Fri, 10 May 2019 17:47:12 +0300 Subject: [PATCH 2/3] Update readme.md --- readme.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/readme.md b/readme.md index dfef80b..3ad8f58 100644 --- a/readme.md +++ b/readme.md @@ -7,13 +7,7 @@ python 2.7 pip #### To install: -run pip install -r requirements.txt - -or install following packages with pip manualy -* hashlib -* plyvel -* base58 -* sqlite3 +run sudo ./install.sh #### Usage To use you will need copy of chainstate database as created by [bitcoin core](https://bitcoin.org/en/bitcoin-core/) From f4fca2fee4df6f6f4e6fae7f7d08540ba79c2f81 Mon Sep 17 00:00:00 2001 From: Keir Finlow-Bates Date: Wed, 24 Feb 2021 01:17:10 +0200 Subject: [PATCH 3/3] Update readme.md --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 3ad8f58..cb143f1 100644 --- a/readme.md +++ b/readme.md @@ -33,7 +33,7 @@ python btcposbal2csv.py /home/USER/.bitcoin/chainstate /home/USER/addresses_with #### Converting to RIPEMD160 Per request, I'm adding script which is able to convert BTC address to RIPEMD160 representation. -BTC address must be in fist column, RIPEMD160 is added to csv. Output goes to stdout. +BTC address must be in first column, RIPEMD160 is added to csv. Output goes to stdout. Example: ```