Post
Topic
Board Mining (Altcoins)
Re: [XPM]unofficial jhPrimeminer thread
by
girino
on 21/09/2013, 20:14:43 UTC
Due to the issues some people have been having with my jsonrpc mod, I have made some changes to my repo.

https://github.com/tandyuk/jhPrimeminer

The master branch is now a plain fork of Rdebourbon's 3.3 for linux.
This can be downloaded using "git clone https://github.com/tandyuk/jhPrimeminer.git"
All the extra headers have been removed, and I have updated the readme and makefiles accordingly.

My json rpc code has been moved to its own branch, and can be downloaded by instead using
"git clone --branch jsonrpc https://github.com/tandyuk/jhPrimeminer.git"

As always, donations are greatfully recieved.

Happy mining Smiley


Hi, i'm not sure if tandyuk follows this thread, but i'd like to suggest a small patch to his code. I had problem when reconnecting after my network went down. The code seems to wait for 30 secs before reconnecting only on the first try, then tries again indefinitely without waiting and thus consumes lots of machine resources needlessly, and never reconnects at all. Adding "Sleep(30*1000)" at the end of the reconnect loop, just as it's done in main() when it first connects, solved it (at least on Mac OSX, will try on windows/cygwin on monday, at work). The patch follows:

Code:
diff --git a/src/primecoinMiner/main.cpp b/src/primecoinMiner/main.cpp
index f91e0ae..c66e314 100644
--- a/src/primecoinMiner/main.cpp
+++ b/src/primecoinMiner/main.cpp
@@ -1442,6 +1442,8 @@
  workData.xptClient = xptClient_connect(&jsonRequestTarget, commandlineInput.numThreads);
  if( workData.xptClient )
  break;
+ std::cout << "Failed to reconnect, retry in 30 seconds" << std::endl;
+ Sleep(1000*30);
  }
  }
  // has the block data changed?

Is there a way to incorporate that into the code?

thanks in advance,
Girino.