Skip to content

Instantly share code, notes, and snippets.

@pooler
pooler / countver.sh
Created April 18, 2017 18:10
Count Litecoin block versions
#!/bin/bash
first=1185408
last=`litecoin-cli getblockcount`
echo Counting blocks from $first to $last...
for ((i=$first; i<=$last; i++)); do
hash=`litecoin-cli getblockhash $i`
ver=`litecoin-cli getblock $hash | grep '"version"' | sed s/[^0-9]//g`
(((ver&0x20000001)==0x20000001)) && ((csv++))
(((ver&0x20000002)==0x20000002)) && ((segwit++))
#!/bin/bash
OPTIONS="--retries=3 --userpass=username.1:x"
while :
do
./minerd $OPTIONS --url=http://ejpool.info:9332/
./minerd $OPTIONS --url=http://lc.ozco.in:9332/
./minerd $OPTIONS --url=http://litecoinpool.org:9332/
./minerd $OPTIONS --url=http://mine.pool-x.eu:8337/
done