ZCash Stratum proxy (Increase earning up to 10%)

I dockerized it.

https://hub.docker.com/r/rlovin/zecproxy/

I’ve been running the docker container (with 2 workers) against nanopool for 2 hours now. It’s been running really well.

The container pulls the latest version of the zecproxy from PistoleDev’s repo when it is built. To upgrade when the software is upgraded, you just run the following:

docker stop zecproxy
docker rm zecproxy
docker run -d \
–name=zecproxy \
-p 8000:8000 \
-v <path/to/config.json>:/zecproxy/config.json \
rlovin/zecproxy:latest

And it’s updated and running.

Tried with CPU miner, does’t work.

./nheqminer -l 192.168.1.5:8000 -u gen8 -t 8


[21:46:41][0x00007f5c80ccb740] Using SSE2: YES
[21:46:41][0x00007f5c80ccb740] Using AVX: YES
[21:46:41][0x00007f5c80ccb740] Using AVX2: NO
[21:46:41][0x00007f5c7e754700] stratum | Starting miner
[21:46:41][0x00007f5c7df53700] miner#0 | Starting thread #0 (CPU-XENONCAT-AVX)
[21:46:41][0x00007f5c7d752700] miner#1 | Starting thread #1 (CPU-XENONCAT-AVX)
[21:46:41][0x00007f5c6ffff700] miner#3 | Starting thread #3 (CPU-XENONCAT-AVX)
[21:46:41][0x00007f5c7cf51700] miner#2 | Starting thread #2 (CPU-XENONCAT-AVX)
[21:46:41][0x00007f5c7e754700] stratum | Connecting to stratum server 192.168.1.5:8000
[21:46:41][0x00007f5c6effd700] miner#5 | Starting thread #5 (CPU-XENONCAT-AVX)
[21:46:41][0x00007f5c6f7fe700] miner#4 | Starting thread #4 (CPU-XENONCAT-AVX)
[21:46:41][0x00007f5c6dffb700] miner#7 | Starting thread #7 (CPU-XENONCAT-AVX)
[21:46:41][0x00007f5c6e7fc700] miner#6 | Starting thread #6 (CPU-XENONCAT-AVX)
[21:46:41][0x00007f5c7e754700] stratum | Could not connect to stratum server 192.168.1.5:8000, Connection refused
[21:46:41][0x00007f5c7e754700] stratum | Reconnecting in 3 seconds…
[21:46:44][0x00007f5c7e754700] stratum | read_until: Transport endpoint is not connected
[21:46:44][0x00007f5c7e754700] stratum | Reconnecting in 3 seconds…
[21:46:47][0x00007f5c7e754700] stratum | Connecting to stratum server 192.168.1.5:8000
[21:46:47][0x00007f5c7e754700] stratum | Could not connect to stratum server 192.168.1.5:8000, Connection refused
[21:46:47][0x00007f5c7e754700] stratum | Reconnecting in 3 seconds…
[21:46:50][0x00007f5c7e754700] stratum | read_until: Transport endpoint is not connected
[21:46:50][0x00007f5c7e754700] stratum | Reconnecting in 3 seconds…

@PistoleDev
Thanks a lot for this great software. I’m using it with nanopool and dstm’s cuda miner at the moment and it works great. When I’ll have more rigs I’ll send you a donation.

1 Like

This is gold! Nice work!

1 Like

I have to be missing something. No matter what I do in the config.json, dwarfpool always rejects my work.

Does anyone have any ideas? Config works fine with nanopool, but I prefer dwarfpool if possible.

@PistoleDev what miner/pool do you recommend, I’m using flypool with dstm and I am averaging on 2.5kH/s console is displaying between 2.5 and 2.6?

I have tried proxy with cuda minier on flypool and my hasrate significanlty decreased.

also, is proxy recommended only when having multiple miners?

Hi @salttrail
Flypool have some issues in difficulty adjustment, so I recommend nanopool.
Zecproxy is recommanded for multiple workers. With 1 rig/worker you can also use zecproxy even if earning will not be really impacted by it.

2 Likes

hi there, @PistoleDev!
I’ve recently tried your soft and it works great, moreover it works with Flypool. The proxy is deployed on ubuntu 16.04 vps machine, and currently 5 rigs are pointed to that machine and it runs for like a week or so. Seems like I get some performance increase, not huge but still like 3-5%. cheers :slight_smile:

1 Like

Hi @zmxrl
Happy to hear that :wink:
More rigs you will add, more the earnings will be increased, especially if your proxy is hosted in your local network (raspberry Pi, computer…).
Have an Happy new year guys !

can someone share a working dwarfpool config?

trick question… Nvidia or AMD and which software

yes?

I’m just trying to get it working with the stratum proxy. I have nicehash and claymore both working direct to dwarfpool. Both nicehash and claymore work with the proxy when pointed at nanopool, i just keep getting work rejected when using them pointed at the zec proxy.

I don’t see that it is claymore working/approved.
There site (to me) is not user friendly, spent a good 30 minutes reading their facts and help.
I don’t even see where dwarfpool uses/accepts ssl to use the built in that claymore offers.

To lower your rejection you might need to switch servers and find one with a lower ping

1 Like

no my point is that when i use the proxy i get rejected work, when i bypass the proxy everything is fine. I’m hoping that by looking at someone’s example working dwarfpool zec proxy config, i can figure out what’s wrong with mine.

Maybe im total nub. But im getting this… tried to get around for some hours now dont tell me its just a easy thing to fix :smile:

npm ERR! Linux 4.4.0-97-generic
npm ERR! argv “/usr/bin/nodejs” “/usr/bin/npm” “start”
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! zecproxy@1.0.8 start: node proxy.js
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the zecproxy@1.0.8 start script ‘node proxy.js’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the zecproxy package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node proxy.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs zecproxy
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls zecproxy
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/m1/zecproxy/npm-debug.log

Just a short question. Is it better to run the proxy on a separate machine or can it also run on one of the rigs? What is the CPU usage of the proxy?

Hi @shark1
Yes, you can run the proxy on a rig, just like if you use multiple rigs (all connected to the same proxy, setuped on one of your rigs). But the best way to setup your mining infrastructure (if you are using several rigs) is to put the proxy on a separate machine and connect all your rigs on your proxy.
For the “CPU” usage on the proxy, it’s neglectable.
Have an happy mining :slight_smile:

1 Like

hello pistoledev, i appreciate works such as this. i know i am obliged to backread but is this good for a single rig with 7 gpus cos i read its better if u have multiple rigs? thanks for the time!

@PistoleDev Thanks a lot.