Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: camponez on August 27, 2015, 11:11:43 AM



Title: Another way to track new BIP101 blocks
Post by: camponez on August 27, 2015, 11:11:43 AM
Hello,

I've wrote this script [1] to help tracking the latest 1000 blocks in order to find how many of them are BitcoinXT blocks.

I know there is already websites like xtnodes.com or blocktrail.com which show in a pretty (with graphs) the (kind of) same information.

But sometimes those sites are off (due to DDoS attacks or whatever) and this script keeps a local database (sqlite) with all the latest 1000 blocks which makes easy to count how many XT blocks have been mined.

Tthe first time the script run, it will load the database with information about the latest 1000 blocks (takes some minutes), and from then on it will update with only the newer blocks, showing a summary using only the latest 1000 blocks.

Hope it helps those who prefer command line scripts! :)

[1] https://github.com/camponez/watch-blockchain