Post
Topic
Board Pools
Re: [300 TH] mmpool.org - 1.5% fee split DGM/PPS - tx fees/vardiff/merge mining/tor
by
mmpool
on 12/02/2015, 02:21:51 UTC
A while back the pool used to support connecting and mining via cjdns. cjdns is described as:

Quote
Cjdns implements an encrypted IPv6 network using public-key cryptography for address allocation and a distributed hash table for routing. This provides near-zero-configuration networking, and prevents many of the security and scalability issues that plague existing networks.

I've re-enabled this for testing purposes as another backup in case mmpool.org is attacked or down. It should provide better performance than the tor hidden service option but it isn't intended for anonymity.

To get running on Linux, follow the directions at the cjdns gitub. Simple steps to get started would be:

Code:
$ sudo apt-get install nodejs git build-essential
$ git clone https://github.com/cjdelisle/cjdns.git cjdns
$ cd cjdns
$ ./do
$ ./cjdroute --genconf >cjdroute.conf
...add peer to cjdroute.conf...
$ sudo ./cjdroute

For Windows there is a compiled binary in cjdns_windows.zip. Then:

  • Install the required tun driver by running tap-windows-9.9.2_3.exe
  • Copy the cjdroute.exe binary to a directory of your choice
  • Create a shortcut on your desktop to 'cmd.exe'
  • Right click on the shortcut and choose 'Properties'. Click the 'Shortcut' tab and click 'Advanced'. Make sure 'Run as Administrator' is checked.
  • Run the cmd.exe shortcut and change to the directory you put 'cjdroute.exe' in
  • Run: cjdroute --genconf >cjdroute.conf
  • Edit cjdroute.conf to add peers
  • Run: cjdroute --nobg

These steps result in an ipv6 network being configured that access the cjdns machines and you'll have an ipv6 address. You should read the cjdns documentation regarding what this means, security, etc.

As mentioned in the steps above you'll need a peer to connect to. If you don't have one you can use the following peer:
Code:
"45.56.125.183:51234":{"password":"3qknzbg5r3u9t9qn7xgc0hdh87y3g2z","publicKey":"xrsw0wkplfh74bur5vgdspu2q6n91drk2x7l179l6zg5tpfru880.k"}

Add that snippet to the 'connectTo' section of 'UDPInterface'. It should look like ('aportnumber' will be your own number):
Code:
      "UDPInterface":
        [  
            {  
                // Bind to this port.
                "bind": "0.0.0.0:aportnumber",

                // Nodes to connect to.
                "connectTo":
                {
                    "45.56.125.183:51234":{"password":"3qknzbg5r3u9t9qn7xgc0hdh87y3g2z","publicKey":"xrsw0wkplfh74bur5vgdspu2q6n91drk2x7l179l6zg5tpfru880.k"}
                }
            }
        ]

You can test by visiting http://[fcb6:1bb4:2fdc:8452:283c:dd3d:9aee:efca] in the browser. This should give you the pool front page but retrieved over the cjdns network. If that works you can mine using:

Code:
./cgminer -o "stratum+tcp://[fcb6:1bb4:2fdc:8452:283c:dd3d:9aee:efca]:3333" -u username -p d=diff

It's a bit of an involved process but if anyone tries it out and gets it working I can document it as another alternative mining option in case of DDOS.