BeamMW / cuda-miner

Cuda Miner for BeamHash (Equihash 150,5)
13 stars 7 forks source link

Miner stops after connection interruption #14

Open frankcoderL opened 5 years ago

frankcoderL commented 5 years ago

Bug description cuda-miner stops after connection interruption

To Reproduce Steps to reproduce the behaviour:

  1. Run the cuda-miner
  2. Unplug the ethernet cable for a while
  3. Put the ethernet cable back again to restart the internet connection

Current behaviour cuda-miner stops mining after connection is interrupted and does noting when connection comes back Tested on two different computers with different NVDIA cards

Expected behaviour After connection comes back, cuda-miner resumes mining

Platform and build

Screenoutput

$ ./beam-cuda-miner --server beam.sparkpool.com:2222 --key somekeynumber
beam-cuda-miner version 1.0.0.82
21:14:09 [Info ]: No API started
21:14:09 [Info ]: Connecting to beam.sparkpool.com:2222 ...
21:14:10 [Info ]: GPU:0: GeForce GTX 1050 Ti
21:14:10 [Info ]: Connected to beam.sparkpool.com:2222
21:14:10 [Info ]: New job #1 at difficulty 100
21:14:13 [Info ]: New job #2 at difficulty 100
21:14:19 [Info ]: GPU:0: A:0/R:0, t:60C P:0W fan:25% 2.7/2.7 Sol/s
21:14:29 [Info ]: GPU:0: A:0/R:0, t:59C P:0W fan:25% 2.6/2.65 Sol/s
21:14:39 [Info ]: GPU:0: A:0/R:0, t:58C P:0W fan:25% 3.2/2.83 Sol/s
--> COMMENT: I disconnect here the ethernet connection

21:14:45 [Info ]: Submitting solution for job #2 with nonce 23276d4cb61e0dcc
21:14:49 [Info ]: GPU:0: A:0/R:0, t:58C P:0W fan:25% 4/3.12 Sol/s
21:14:59 [Info ]: GPU:0: A:0/R:0, t:58C P:0W fan:25% 3.4/3.18 Sol/s
21:15:09 [Info ]: GPU:0: A:0/R:0, t:58C P:0W fan:25% 4.2/3.35 Sol/s
21:15:19 [Info ]: GPU:0: A:0/R:0, t:59C P:0W fan:25% 3.9/3.43 Sol/s
21:15:29 [Info ]: GPU:0: A:0/R:0, t:59C P:0W fan:25% 3.4/3.42 Sol/s
21:15:38 [Info ]: Submitting solution for job #2 with nonce 79276d4cb61e0dcc
21:15:39 [Info ]: GPU:0: A:0/R:0, t:59C P:0W fan:25% 4/3.49 Sol/s
21:15:48 [Info ]: Submitting solution for job #2 with nonce 89276d4cb61e0dcc
21:15:49 [Info ]: GPU:0: A:0/R:0, t:60C P:0W fan:25% 4/3.54 Sol/s
21:15:59 [Info ]: GPU:0: A:0/R:0, t:60C P:0W fan:25% 2.8/3.47 Sol/s
21:16:09 [Info ]: GPU:0: A:0/R:0, t:60C P:0W fan:25% 2.7/3.41 Sol/s
21:16:19 [Info ]: GPU:0: A:0/R:0, t:60C P:0W fan:25% 3.2/3.39 Sol/s
21:16:29 [Info ]: GPU:0: A:0/R:0, t:60C P:0W fan:25% 2.9/3.36 Sol/s
21:16:39 [Info ]: GPU:0: A:0/R:0, t:60C P:0W fan:25% 2.2/3.28 Sol/s
--> COMMENT: I reconnect here the ethernet connection

21:16:49 [Info ]: GPU:0: A:0/R:0, t:60C P:0W fan:26% 3.1/3.27 Sol/s
21:16:59 [Info ]: GPU:0: A:0/R:0, t:60C P:0W fan:26% 2.5/3.22 Sol/s
21:17:02 [Info ]: Submitting solution for job #2 with nonce 00286d4cb61e0dcc
21:17:03 [Error]: Socket read error in ReadJson: -1
21:17:03 [Info ]: Reconnect in 15 s
--> COMMENT: miner doesn't do anything anymore
frankcoderL commented 5 years ago

Add watchdog feature please Thank you

IIINazaraIII commented 5 years ago

Is there any work around for this? it's very annoying miners going offline during the night