mozkomor / GrinGoldMiner

Grin open-source miner
GNU General Public License v3.0
175 stars 71 forks source link

Not switching to secondary pool address #62

Closed nerdatwork closed 5 years ago

nerdatwork commented 5 years ago

After grinmint's stratum issue I noticed GGM isn't switching to secondary pool. Are there any number of retries set before it switches to secondary pool ?

urza commented 5 years ago

Looking at the logs, the issues is with the grinmint behaviour. After connection is lost, miner starts reconnecting and Grinmint ACCEPTS this connection. But then drops the connection immediately again. They should either not accept the connection and or start sending jobs. I suspect they have divived their architecture in layers, and only one layer failed, while the other (accepting connections) kept working.

We could try detecting this.. or maybe connect to random (primary/backup) first when reconnecting...

theREALeson commented 5 years ago

Note this same thing happens with MWgrinpool as primary connection, they just had issues and rigs did not switch over to Grinmint. Could GGM establish a share submission rate and switch over when it reaches 10% of the average or something to that effect?

urza commented 5 years ago

I created 2.8 beta2 that chooses randomly where to re-connect (either primary or backup pool) in case connection is lost. This should solve it because sooner or later you will hit the one that is stable.

Does not affect starting miner, there still primary is first.

If you want to help test this, download 2.8 beta2 file under latest release