Skip to content

Instantly share code, notes, and snippets.

SETTLEMENT_ADDRESS = 'bae24162efbd568f89bc7a340798a6118df0189eb9e3f8697bcea27af99f8f79'
async def read_spends(header_hash, node_client):
coin_spends = await node_client.get_block_spends(header_hash)
settlement_spends = []
for coin_spend in coin_spends:
if coin_spend.coin.puzzle_hash.hex() == SETTLEMENT_ADDRESS:

Keybase proof

I hereby claim:

  • I am joeharrison714 on github.
  • I am bigjoe714 (https://keybase.io/bigjoe714) on keybase.
  • I have a public key ASBuwOGrIKTL_9CphKLQyU9KzOykt0n4cUcFuZb2gPfLeAo

To claim this, I am signing this object:

@joeharrison714
joeharrison714 / backup.ps1
Created July 7, 2017 00:17
Script to backup Minecraft maps to Amazon S3 and render MapCrafter maps
$baseDir = "d:\minecraft-servers"
$backupDir = "$baseDir\backup"
$mapsOutput = "$baseDir\mapcrafter-output"
$awsProfileName = "minecraft-backup-script"
$s3BackupBucketName = "joeharrison-minecraft-backups"
$s3MapsBucketName = "minecraft.joeharrison.com"
$servers = @{}
@joeharrison714
joeharrison714 / CodeWriter.cs
Created February 25, 2017 19:27
Write code to a file
using System.IO;
using System.Text;
//https://gist.github.com/joeharrison714/c9bea7320e5f9f1bdc7ae0fbfedf7987
internal class CodeWriter
{
private readonly StringBuilder _output;
private int _indents;
public CodeWriter()