Skip to content

Instantly share code, notes, and snippets.

@mutatrum
mutatrum / blocktime.sh
Last active September 14, 2022 20:52
Calculate block height based on a timestamp
#!/bin/bash
TIME=$(date -d "$1" +"%s")
function getBlockTime {
echo $(bitcoin-cli getblockheader $(bitcoin-cli getblockhash $1) | jq -r .time)
}
function binarySearch {
L=$1
@deweller
deweller / cip-0001.md
Last active May 6, 2022 12:42
Counterparty Improvement Protocol 1
  CIP: 1
  Title: CIP Purpose and Guidelines
  Author: Devon Weller 
  Status: Draft
  Type: Process
  Created: 2015-10-27

What is a CIP?