An open API service indexing awesome lists of open source software.

https://github.com/mhssamadani/ErgoStratumProxy

A proxy to connect the miners of Ergo to the Stratum server
https://github.com/mhssamadani/ErgoStratumProxy

Last synced: 6 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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](https://github.com/mhssamadani/ErgoStratumProxy/releases).

2- Run the proxy with appropriate options.

- In Windows PowerShell:
```
.\ErgoStratumProxy.exe -s -p -u
```
- In linux:
```
./ErgoStratumProxy_Linux -s -p -u
```
![](https://raw.githubusercontent.com/mhssamadani/ErgoStratumProxy/main/img/quickrun.jpg)

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](https://adanorthpool.medium.com/ergostratumproxy-on-windows-wsl-for-mining-ergo-cryptocyrrency-to-a-mining-pool-2b42814cc474) in order to install the proxy.

1. Install Node v12+ and npm

2. Install package dependencies:

```
npm install
```
3. Pass arguments to [`client.js`](https://github.com/mhssamadani/ErgoStratumProxy/blob/main/client.js):

![](https://raw.githubusercontent.com/mhssamadani/ErgoStratumProxy/main/img/arguments.png)

4. Start proxy
```
node client.js -s -p -u
```
![](https://raw.githubusercontent.com/mhssamadani/ErgoStratumProxy/main/img/start.png)