Code Monkey home page Code Monkey logo

open-grin-pool's Introduction

open-grin-pool

FOSSA Status Build Status Go Report Card

This is originally designed for the epic (=epicash). And the codebase of the epic is grin so it can be generally used as the grin pool.

Latest is tested under grin's usernet.

features

  • relay the miner conn to the grin node, totally native experience
  • expose the TUI miner detail to Http API
  • backup the share(submit) histories per specific time interval
  • record the miner's pay method (manually sent coin by pool maintainer)
  • pool status

Usage

# if grin
grin server run 
# if epic
epic server run

# ready
git clone https://github.com/maoxs2/open-grin-pool.git pool
cd pool && go build .

# config
vi config.json

# start
./open-grin-pool 

WebAPI:

  • /pool basic pool status
  • /revenue the revenue last day, which the pool maintainer has to sent today
  • /shares the all miners' shares today
  • /miner/{miner_login} GET is the miner status POST upload the payment method. e.g. curl 127.0.0.1:3333/miner/Hello will get the json of "Hello"'s status. curl -X POST -d "{'pass': 'passwordOfHello', 'pm': 'http://<IP>:<PORT>'}" 127.0.0.1:3333/miner/Hello

The maintainer can manually use this command to send the coin grin wallet send -d http://<IP>:<PORT>. Note, ensure the receiver online before your sending.

WebPage:

  • replace the API address to your API in the web/config.js
  • move all files in web to your Nginx/Apache folder

Config

For server

If you are using epic you can keep all default except auth_pass. The password can be found in the .api_secret file.

knowledge about this, check here

The diff should be the same difficulty to what you configured in server's (not pool's) .toml config file.

For miner

In miner's config(a .toml config file), these 2 params are required

# login for the stratum server (if required)
stratum_server_login = "loginName"

# password for the stratum server (if required)
stratum_server_password = "loginPass"

The agent is optional. Pool treat it as the miner's rig name.

or the miner will not be able to connect to the server and the sol will not be relayed to the node!

TODO

  • Web UI
  • More accurate hash rate
  • Administration based on web
  • multi Backend (failover)
  • multi Port (with different difficulties)

Please donation: LTC: LXxqHY4StG79nqRurdNNt1wF2yCf4Mc986

License

FOSSA Status

open-grin-pool's People

Contributors

kevin070982 avatar c0mm4nd avatar fossabot avatar joey-crypto avatar

Watchers

James Cloos avatar  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.