Skip to content

Instantly share code, notes, and snippets.

View jackschultz's full-sized avatar

Jack Schultz jackschultz

View GitHub Profile
@jackschultz
jackschultz / linknodes.sh
Last active June 29, 2019 19:54
Script for linking the jbc repo into another dir to be able to run the node on a different port. The jbc readme has more information.
#!/bin/bash
port=$1
if [ -z "$port" ] #if port isn't assigned
then
echo Need to specify port number
exit 1
fi
@jackschultz
jackschultz / bitcoin_block_difficulty_analysis.py
Created November 12, 2017 23:47
Showing of Bitcoin's Proof of Work difficulty is calculated and changed.
import datetime
###################################################################
#
# Showing the way bits, difficulty, target, and hash work together.
#
###################################################################
print "Calculating target from bits, verifying the block's hash is valid, and verify the calculated difficulty."