Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
# Inital code based off Poold.py
# Enjoy!
import time
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
from SocketServer import ThreadingMixIn
import threading
import json
import pprint
echo "Enter directory to run in: "
read dir
echo "Enter new name of coin: "
read name
namelower="$(echo $name | tr '[A-Z]' '[a-z]')"
nameupper="$(echo $name | tr '[a-z]' '[A-Z]')"
nameupperf="$(echo ${name:0:1} | tr '[a-z]' '[A-Z]')${name:1}"
cd $dir
from flask import Flask
import bitcoinrpc
import binascii
app = Flask(__name__)
remote_conn = bitcoinrpc.connect_to_remote(user, password, host, port)
@app.route('/block/<int:height>')
def show_finder(height):
blockhash = remote_conn.getblockhash(height)
echo "addnode=prohashing-1.prohashing.com" >> $file
echo "addnode=ispace.co.uk" >> $file
echo "addnode=pool1.amsterdam.mining.mintsy.co" >> $file
echo "addnode=srcseed001.com" >> $file
echo "addnode=payment.coinmine.pw" >> $file
echo "addnode=hash-to-coins.com" >> $file
echo "addnode=prohashing-1.prohashing.com" >> $file
echo "addnode=coind58.netcraft.ch" >> $file
echo "addnode=currencies2.coinplorer.com" >> $file
echo "addnode=currencies1.coinplorer.com" >> $file
#!/bin/bash -ex
WORKDIR=/tmp/
echo Post VM installing...
cd $WORKDIR
# Install redis
wget http://download.redis.io/redis-stable.tar.gz --continue
@ahmedbodi
ahmedbodi / fees.txt
Created December 17, 2015 15:10
GreenCoin TX Size Guide
Tx of size: 1 Has Fee: 2 GRE
Tx of size: 2 Has Fee: 4 GRE
Tx of size: 3 Has Fee: 6 GRE
Tx of size: 4 Has Fee: 8 GRE
Tx of size: 5 Has Fee: 10 GRE
Tx of size: 6 Has Fee: 12 GRE
Tx of size: 7 Has Fee: 14 GRE
Tx of size: 8 Has Fee: 16 GRE
Tx of size: 9 Has Fee: 18 GRE
Tx of size: 10 Has Fee: 20 GRE
Fault Spec:
P00xx – Fuel and air metering and auxiliary emission controls.
P01xx – Fuel and air metering.
P02xx – Fuel and air metering (injector circuit).
P03xx – Ignition system or misfire.
P04xx – Auxiliary emissions controls.
P05xx – Vehicle speed controls and idle control system.
P06xx – Computer output circuit.
P07xx – Transmission.
P08xx – Transmission.
# errata:
# - A travis bug causes caches to trample eachother when using the same
# compiler key (which we don't use anyway). This is worked around for now by
# replacing the "compilers" with a build name prefixed by the no-op ":"
# command. See: https://github.com/travis-ci/travis-ci/issues/4393
# - sudo/dist/group are set so as to get Blue Box VMs, necessary for [loopback]
# IPv6 support
sudo: required
dist: trusty
@ahmedbodi
ahmedbodi / genesis.txt
Created April 24, 2017 11:35 — forked from moh53n/genesis.txt
This code is from "http://dillingers.com/blog/2015/04/18/how-to-make-an-altcoin" with some changes for newer versions of Bitcoin. Use this for mine the genesis block for a new coin.
/**
* This code is from "http://dillingers.com/blog/2015/04/18/how-to-make-an-altcoin" with some changes for newer versions of Bitcoin.
* Use this for mine the genesis block for a new coin.
* Put this before "consensus.hashGenesisBlock = genesis.GetHash();"
*/
/////////GENESIS MINING///////////////
/*
LogPrintf("Genesis mining started\n");
genesis.nNonce = 0;
consensus.hashGenesisBlock = uint256S("0x001");

Date: 10th June 2017

Work on the electrum port for Namecoin has been moving along nicely. It was decided that we will use the electrum-client from spesmilo, along with the electrumX server. ElectrumX was chosen due to the original electrum-server being discontinued a few months ago. So far the electrum client has been ported over for compatability with electrumX. This includes the naming, blockchain parameters and other electrum related settings for blockchain verification

On the roadmap now are:

  • Extend electrumX NMC Support to allow for full veritification of AuxPow
  • Modify new electrum client to verify the new AuxPow
  • Add Name handling support to electrum