Open JsBergbau opened 6 years ago
Hello guys,
I made a different version based on asyncio, which is even more lightweight. You can check the code on my GitHub, it's currently targetting equihash but might be generic enough to work on ethash as well.
Hi eLvErDe, can you do anything with #36 this problem?
Hi JuicyPasta,
thanks for your mining proxy to stop greedy Claymore from getting too much money.
In your code you set
What background has setting "connection.settimeout(0)" ? https://docs.python.org/2/library/socket.html
If you don't set this the call is in so called blocking mode, means it returns only when there is new data. So CPU is used as little as possible.
When using this you could avaoid time.sleep(0.001) in 170 btw. I've changed to time.sleep(0.01) and now have reduced CPU usage a lot.
So do you have a special reason for the command in non blocking mode? Normally when programming network functions I work in blocking modes. Thus programs need a little CPU as possible.