项目作者: p4u

项目描述 :
Stratum proxy relay for mining altcoin
高级语言: Python
项目地址: git://github.com/p4u/stratum-relay.git
创建时间: 2014-10-27T13:49:41Z
项目社区:https://github.com/p4u/stratum-relay

开源协议:GNU Affero General Public License v3.0

下载


Stratum Relay

See the document stratum_relay.pdf to understand how it works.

The rest of documentation is in the code :)

It is designed for python3

WARNING: this is a proof-of-concept code in alpha state

Usage

  1. strelay.py [-h] [-s POOL] [-t PORT] [-u USERNAME] [-a PASSWORD]
  2. [-l LISTEN] [-p LISTEN_PORT] [-c CONTROL] [-x CONTROL_PORT]
  3. [-o LOG] [-q] [-v VERBOSE]
  4. optional arguments:
  5. -h, --help show this help message and exit
  6. -s POOL Hostname of stratum mining pool
  7. -t PORT Port of stratum mining pool
  8. -u USERNAME Username for stratum mining pool
  9. -a PASSWORD Password for stratum mining pool
  10. -l LISTEN IP to listen for incomming connections (miners)
  11. -p LISTEN_PORT Port to listen on for incoming connections
  12. -c CONTROL IP to listen for incomming control remote management
  13. -x CONTROL_PORT Control port to listen for orders
  14. -o LOG File to store logs
  15. -q Enable quite mode, no stdout output
  16. -v VERBOSE Verbose level from 0 to 4

Example:

  1. python3 strelay.py -s anyscryptpool.foo -t 3333 -u 1BaE7aavLF17jj618QKYFc5x6NGxk7uBkC -a x -l 0.0.0.0 -p 3334 -c 127.0.0.1 -x 4444

The relay will listen on port 3334 until some miner connects.
Then it will open a new connection with the origin pool.

You can use netcat or telnet to query statistics or control the relay on port 127.0.0.1:4444

Thanks ;)