tradecraftio / tradecraft

Tradecraft integration/staging tree https://tradecraft.io/download
Other
13 stars 9 forks source link

[backport-12] Add built-in stratum v1 mining server for solo-mining #68

Closed maaku closed 4 years ago

maaku commented 4 years ago

This PR backports the still-in-progress stratum solo-mining service to to the v12 branch (see #65). There isn't any in-repo testing of this feature as I am still trying to decide on the best way to do that, but this stratum mining service is already powering a large percentage of the hash rate on main net. As a consequence, I'm fast-tracking it for merge into the long-term support branch and pushing out a new release for v12 so others can have access to this.

Note: By default the stratum mining service only listens on the local loopback interfaces. This is for security purposes, in case there is a security hole in this code. If you want to expose the stratum miner to be accessed over the network, use the -stratumallowip and -stratumbind options.