Skip to content

A proxy to connect the miners of Ergo to the Stratum server

License

Notifications You must be signed in to change notification settings

mhssamadani/ErgoStratumProxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Stratum Mining Proxy for Ergo

The current version of ergo miners only support http request and response.

In order to work with a stratum pool, this proxy is required.

This proxy is a simple wrapper that gets jobs from stratum mining pool and creates an http interface for miner.

Quick Start

1- Download executable proxy for Linux/Windows.

2- Run the proxy with appropriate options.

  • In Windows PowerShell:
.\ErgoStratumProxy.exe -s <POOL_ADDRESS> -p <POOL_PORT> -u <WORKER_NAME>
  • In linux:
./ErgoStratumProxy_Linux -s <POOL_ADDRESS> -p <POOL_PORT> -u <WORKER_NAME>

See other options by running with -h argument. Among these arguments, listening port (-l), password (-w) and timeout (-t) are optional.

  • Argument -l opens a port for listening to the miner (default port is 3000)
  • Argument -t changes the reconnection timeout (in seconds) to the stratum server (default is 300 seconds)

Miner Configuration

  • In the miner's config file config.json set node address to the proxy's address (by default this address is: {"node":"http://127.0.0.1:3000"}, unless you have changed the listening port)

Build

Windows users can use this tutorial in order to install the proxy.

  1. Install Node v12+ and npm

  2. Install package dependencies:

npm install
  1. Pass arguments to client.js:

  1. Start proxy
node client.js -s <POOL_ADDRESS> -p <POOL_PORT> -u <WORKER_NAME>

About

A proxy to connect the miners of Ergo to the Stratum server

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •