xmrig / xmrig-proxy

Monero (XMR) Stratum protocol proxy
https://xmrig.com/proxy
GNU General Public License v3.0
613 stars 338 forks source link

Single Port Multicoin #185

Open rizwansarwar opened 6 years ago

rizwansarwar commented 6 years ago

This is not an issue, but was wondering if the proxy could handle requests for multiple coins at same time, for example, ETN/XLT/XMR, depending on what the worker requests.

I know one could just run multiple proxies to achieve this, but I am trying to workout if there is something in the getwork protocol itself that can distinguish between requests for different coins?

This will allow proxy to run on one port or multiple proxies sit behind a L7 load balancer.

rizwansarwar commented 5 years ago

Would be nice to have, however I do think that having one application instance do all the work is not ideal, may be the implementation is done in such a way that xmrig proxy runs in two mode,

a) A proxy for downstream proxies b) A proxy for pool

This way one can have multiple instances of xmrig proxy connected to various pools, while the upstream proxy (a), just does the routing of traffic to proxies running in mode (b). There could also be other ways to solve the same.