This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am moocowmoo on github. | |
* I am moocowmoo (https://keybase.io/moocowmoo) on keybase. | |
* I have a public key whose fingerprint is 6225 D915 217D CB1A B22A F7FF AE5C 4EE4 7DB5 2172 | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env ruby | |
# Example of converting Dash BIP32 extended public key (incorrectly) beginning | |
# with 'xpub' to correct prefix 'drkv'. | |
# | |
require 'bitcoin' | |
# test extended pub key | |
xpub = 'xpub661MyMwAqRbcF3jZGiw3QBt7nD13a7k8jVt9me27BL1vSeSpviDj6udJ5cnFyr2q2ofw7kMKGUepVhVsbLVsckxGzDmvnpGPr88CJAz1Ab5' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# automatically download latest mainnet blockchain bootstrap file | |
cd ~/.dashcore | |
if [ ! -e bootstrap.dat ]; then | |
wget https://raw.githubusercontent.com/UdjinM6/dash-bootstrap/master/links.md -O links.md | |
MAINNET_BOOTSTRAP_FILE=$(head -1 links.md | awk '{print $11}' | sed 's/.*\(http.*\.zip\).*/\1/') | |
wget $MAINNET_BOOTSTRAP_FILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
now_height=460854 | |
now_outstanding=6406809 | |
def min_blok_subsidy(nHeight): | |
nSubsidy = float(5) # assume minimum subsidy | |
for i in range(210240, nHeight, 210240): | |
nSubsidy -= nSubsidy/14 | |
return nSubsidy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
def selection_probability(mns, blocks): | |
p_pool = mns / 10 | |
p_prob = 1.0 - ((float(p_pool - 1) / float(p_pool)) ** float(blocks)) | |
return "{:0.2f}%".format(p_prob * 100) | |
masternode_count = 4387 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that "moocowmoo.id" is my Blockstack ID. https://onename.com/moocowmoo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
def capture_probability( n_full_set, n_capture_set, rounds): | |
return (n_capture_set / n_full_set) ** rounds | |
masternode_count = 4270 | |
if __name__ == "__main__": | |
for percentage in range (5, 100, 5): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "getting checksum list" | |
wget -q https://github.com/dashpay/dash/releases/download/v0.12.1.5/SHA256SUMS.asc | |
FILENAMES=$(cat SHA256SUMS.asc | grep dash | awk '{print $2}') | |
echo "downloading binaries" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# blockchain state at first block of 2017 | |
year_now = 2017 | |
now_height = 596411 | |
now_outstanding = 6990727 | |
# 200423 == average annual block discovery rate across 2 years | |
avg_blocks_per_year = float(((596411 - 395793) + (395793 - 195565)) / 2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io | |
import os | |
from bitcoinrpc.authproxy import AuthServiceProxy | |
def ParseConfig(fileBuffer): | |
assert type(fileBuffer) is type(b'') | |
f = io.StringIO(fileBuffer.decode('ascii', errors='ignore'), newline=None) | |
result = {} | |
for line in f: |
OlderNewer