Skip to content

Instantly share code, notes, and snippets.

Avatar

Matt Corallo TheBlueMatt

View GitHub Profile
@TheBlueMatt
TheBlueMatt / chrony_ntp_logconv.py
Last active Sep 16, 2020
Convert Chrony logs to ntp log format for ntpsec ntpviz graphing
View chrony_ntp_logconv.py
#!/usr/bin/env python3
# Convert chrony's tracking and statistics logs to something ntpsec's ntpviz can graph
# Assumes chrony's logs are in /var/log/chrony and outputs to /var/log/ntpstats
# See below and fill in an adapter from your local refid names for refclocks to NTPd style
# IPs for refclocks.
import shutil, os, math
from datetime import datetime, timezone
View TransactionFeeProposal.md

Reworking Bitcoin Transaction Fees

Transaction fees as they are currently implemented in the original Bitcoin code suffer from a few problems:

  • The rules are somewhat complicated and are not at all transparent
  • Fees are hard-coded and do not reflect real costs
  • Adding fees to a transaction doesn't necessarily make it more likely the transaction will be confirmed more quickly.

The following is a summary of proposals and ideas put forth by others to provide for more discussion.

@TheBlueMatt
TheBlueMatt / build-bitcoin.sh
Created May 8, 2011 — forked from devrandom/00README.md
Building bitcoin with gitian-builder
View build-bitcoin.sh
# First run:
apt-get install apt-cacher python-vm-builder
vi /etc/default/apt-cacher # ensure autostart is enabled
sudo service apt-cacher start
# Note that apt-cacher caused some problems for me, you can also try apt-cacher-ng, making sure to set the listen address to 127.0.0.1 (which it for some reason doesn't do if you have IPv6 in some cases)
git clone git://github.com/TheBlueMatt/bitcoin.git
git clone git://github.com/devrandom/gitian-builder.git
mkdir gitian-builder/inputs
wget 'http://miniupnp.tuxfamily.org/files/download.php?file=miniupnpc-1.5.tar.gz' -O gitian-builder/inputs/miniupnpc-1.5.tar.gz
@TheBlueMatt
TheBlueMatt / build-bitcoin.sh
Created Apr 30, 2011 — forked from devrandom/00README.md
Building bitcoin with gitian-builder
View build-bitcoin.sh
# First run:
apt-get install apt-cacher
bin/make-base-vm -arch i386
bin/make-base-vm -arch amd64
git clone git://github.com/devrandom/bitcoin.git
git clone git://github.com/devrandom/gitian-builder.git
wget 'http://miniupnp.tuxfamily.org/files/download.php?file=miniupnpc-1.5.tar.gz' -O gitian-builder/inputs/miniupnpc-1.5.tar.gz
wget 'http://downloads.sourceforge.net/project/wxwindows/2.9.1/wxWidgets-2.9.1.tar.bz2' -O gitian-builder/inputs/wxWidgets-2.9.1.tar.bz2'
# To build