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
- Host: GitHub
- URL: https://github.com/mhssamadani/ErgoStratumProxy
- Owner: mhssamadani
- License: mit
- Created: 2020-12-19T13:53:41.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-14T12:59:31.000Z (about 4 years ago)
- Last Synced: 2023-03-12T01:12:26.959Z (about 2 years ago)
- Language: JavaScript
- Size: 448 KB
- Stars: 7
- Watchers: 5
- Forks: 21
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ergo - ErgoStratumProxy - source Ergo miners. [`Scala`] *(Software Component)* (⛏️ Mining <a id="mining"></a> / 🔧 Utilities & Tooling <a id="utilities--tooling"></a>)
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
```
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):
4. Start proxy
```
node client.js -s -p -u
```
