Skip to content

Instantly share code, notes, and snippets.

View DemonRx's full-sized avatar
🎯
That's what's up

Demon DemonRx

🎯
That's what's up
View GitHub Profile
@patricklodder
patricklodder / crawl_block_fee.sh
Created February 1, 2021 14:12
Crawl block fees paid to miners
#!/bin/bash
#
# requirements: bash, up-to-date dogecoind with -txindex, jq, bc
# usage: ./crawl_block_fee.sh <number of blocks to look back>
START=`dogecoin-cli getbestblockhash`
NUM_BLOCKS=$1
CUR=$START
COUNTER=$NUM_BLOCKS