Bitcoin miners want their newly-found blocks to propagate across the network as quickly as possible, because every millisecond of delay increases the chances that another block, found at about the same time, wins the "block race."
This file contains hidden or 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
"use strict"; | |
var httpProxy = require('http-proxy'), | |
http = require('http'), | |
accesslog = require('access-log'), | |
addresses; | |
var LISTENPORT = 80; //port we're listening to the outside world | |
var METEORPORT = 3000; //port meteor is run on the guests | |
var MINIP = 10; //Minimum IP address we can use. Smaller numbers are for admin purposes |
This file contains hidden or 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
package main | |
import ( | |
"bytes" | |
"encoding/hex" | |
"flag" | |
"fmt" | |
"io" | |
"log" | |
"net" |