Code Monkey home page Code Monkey logo

stratum-mining-litecoin's Introduction

stratum-mining-litecoin

Basic implementation of litecoin mining pool using Stratum mining protocol.

This fork includes database optimisations for MySQL and password hashing using a salt.

This fork is currently in testing. Please let me know if there is anything broken.

Installation Instructions can be found in the INSTALL

JSON API

There is also a JSON API, currently just for users (db: pool_workers). Enabled if you set ADMIN_PORT to a valid port rather than None. Once enabled, you can perform the following on http://localhost:ADMIN_PORT/, provided you have a password set (see after commands).

GET /users - list all users POST /users - create a user (JSON body: {"username": "username", "password": "password"}). Password will be encrypted using the salt.

GET /users/{id_or_username} - Get a JSON object of a specific user DELETE /users/{id_or_username} - Remove a pool_worker. If using MySQL, any shares associated with that user will be associated with the global system account (ID: 0) PUT /users/{id_or_username} - Update password for user, send as {"password": "password"}, as with POST /users, the password will be encrypted for you.

Authentication

Access to the JSON API requires basic auth. The username does not matter; the password is the same as the ADMIN_PASSWORD_SHA256 password which can generated using scripts/generateAdminHash.sh .

I would strongly suggested locking down the port as well using iptables or similar.

The Rest

Basic worker stats are provided (and updated)

See the INSTALL file for install instructions.

For more info on Stratum: http://mining.bitcoin.cz/stratum-mining.

Original version by Slush Modified version by GeneralFault Modified version Wade Womersley (Media Skunk Works) ( Tips Welcome: 1FxBTbWR15WZp8vnru8N6zVsVBwigPAcdN )

This version was slightly modified by moopless to work for scrypt based coins based on the work done by viperaus

stratum-mining-litecoin's People

Contributors

generalfault avatar wadewomersley avatar jarretlavallee avatar neozonz avatar slush0 avatar luke-jr avatar m0mchil avatar

Watchers

James Cloos avatar Alfred Kam avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.