Stratehm / stratum-proxy

Java implementation of a stratum->stratum/HTTPGetwork proxy with a Web GUI and some pool switching strategies (PriorityFailover, WeightedRoundRobin). Simple to install and configure.
GNU General Public License v3.0
198 stars 118 forks source link

Vardiff with multiple different miners #50

Closed michelem09 closed 9 years ago

michelem09 commented 9 years ago

Hi, thanks for the great work, I have this problem, I'd like to stratum proxy multiple different devices with really different difficulty to one single pool. When my first device (for example with a value of 16 for difficulty) connect to the proxy there isn't any problem, but as soon as I connect a different miner (with for example 512 for difficulty) the first miner get this last difficulty and cannot mine anymore. Is there something I miss?

Stratehm commented 9 years ago

The proxy established only one connection to the pool. Thus, all workers are mutualized on this single connection and the pool think it is a single miner. The hashrate of the all the miners connected to the proxy are added. So, if vardiff is enable on the pool, it adjusts the difficulty to the total hashrate. Your small miner still mines but will find less shares. But statistically, there is absolutely no loss (since each share worth more).

michelem09 commented 9 years ago

Yes, you are right but I'd prefer to have multiple connections for each miner or pool of miners to have each one the right difficulty. Well, no problem, thank you.