Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

Nicehash stratum extranonce isn't handled correctly. #1096

Closed
CryptoManiac opened this issue May 10, 2018 · 31 comments
Closed

Nicehash stratum extranonce isn't handled correctly. #1096

CryptoManiac opened this issue May 10, 2018 · 31 comments
Labels

Comments

@CryptoManiac
Copy link

CryptoManiac commented May 10, 2018

Hi all. I'm getting incorrect behaviour with nicehash-startum pools. Looks like ethminer ignores extranonce which was set by pool and uses 0x00 instead. As the result, all generated shares are rejected.

bash-3.2$ ./ethminer -P stratum2+tcp://0x5b475febb3018f41d0ac3c2f1a864bd102ab5a2e.w1:0.006@127.0.0.1:3333/ -G --farm-recheck 2000 --opencl-device 1 -t 5
  m  15:28:13|        |  ethminer 0.15.0.dev9-6+commit.658e22fc
  m  15:28:13|        |  Build: darwin / release
  ℹ  15:28:13|        |  Found suitable OpenCL device [ AMD Radeon HD - FirePro D700 Compute Engine ] with 6442450944  bytes of GPU memory
  ℹ  15:28:13|        |  Selected pool 127.0.0.1:3333
  m  15:28:13|        |  not-connected
  ℹ  15:28:13|stratum |  Trying 127.0.0.1:3333 ...
  ℹ  15:28:13|stratum |  Connected to 127.0.0.1  [127.0.0.1:3333]
  ℹ  15:28:13|stratum |  Spinning up miners...
 cl  15:28:13|cl-0    |  No work. Pause for 3 s.
  ℹ  15:28:13|stratum |  Subscribed to stratum server
  ℹ  15:28:13|stratum |  Authorized worker 0x5b475febb3018f41d0ac3c2f1a864bd102ab5a2e.w1
  ℹ  15:28:13|stratum |  Difficulty set to 0.000232831
  ℹ  15:28:13|stratum |  New pool difficulty:  1.00 megahashes
  ℹ  15:28:13|stratum |  New job #4ea4c76d…   127.0.0.1 [127.0.0.1:3333]
 cl  15:28:16|cl-0    |  New epoch: 0
 cl  15:28:16|cl-0    |  Platform: Apple
 cl  15:28:16|cl-0    |  Device:   AMD Radeon HD - FirePro D700 Compute Engine  / OpenCL 1.2
 cl  15:28:17|cl-0    |  OpenCL kernel: Stable kernel
 cl  15:28:17|cl-0    |  Build info: <program source>:342:9: warning: comparison of integers of different signs: 'int' and 'const uint' (aka 'const unsigned int')
                if (i == thread_id)
      ~ ^  ~~~~~~~~~
<program source>:377:9: warning: comparison of integers of different signs: 'int' and 'const uint' (aka 'const unsigned int')
                if (i == thread_id)
      ~ ^  ~~~~~~~~~

 cl  15:28:17|cl-0    |  Creating light cache buffer, size 16776896
 cl  15:28:17|cl-0    |  Creating DAG buffer, size 1073739904
 cl  15:28:17|cl-0    |  Loading kernels
 cl  15:28:17|cl-0    |  Writing light cache buffer
 cl  15:28:17|cl-0    |  Creating buffer for header.
 cl  15:28:17|cl-0    |  Creating mining buffer
  m  15:28:18|        |  Speed   0.00 Mh/s    gpu/0  0.00  [A0+0:R0+0:F0] Time: 00:00
  ℹ  15:28:19|cl-0    |  0.999998  GB of DAG data generated in 2690 ms.
  ℹ  15:28:20|cl-0    |  Nonce 0x0000000000054a36
  ✘  15:28:20|stratum |  Error :� Malformed PoW result
  ✘  15:28:20|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:20|cl-0    |  Nonce 0x0000000000174942
  ✘  15:28:20|stratum |  Error :� Malformed PoW result
  ✘  15:28:20|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:20|cl-0    |  Nonce 0x00000000002041dd
  ✘  15:28:20|stratum |  Error :� Malformed PoW result
  ✘  15:28:20|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:21|cl-0    |  Nonce 0x000000000035a1a5
  ✘  15:28:21|stratum |  Error :� Malformed PoW result
  ✘  15:28:21|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:21|cl-0    |  Nonce 0x00000000004c810d
  ✘  15:28:21|stratum |  Error :� Malformed PoW result
  ✘  15:28:21|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:21|cl-0    |  Nonce 0x000000000062f8a2
  ✘  15:28:21|stratum |  Error :� Malformed PoW result
  ✘  15:28:21|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:22|cl-0    |  Nonce 0x0000000000743468
  ✘  15:28:22|stratum |  Error :� Malformed PoW result
  ✘  15:28:22|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:22|cl-0    |  Nonce 0x00000000008025bb
  ✘  15:28:22|stratum |  Error :� Malformed PoW result
  ✘  15:28:22|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:23|cl-0    |  Nonce 0x0000000000b5d5dd
  ✘  15:28:23|stratum |  Error :� Malformed PoW result
  ✘  15:28:23|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  m  15:28:23|        |  Speed   3.13 Mh/s    gpu/0  3.13  [A0+0:R9+0:F0] Time: 00:00
  ℹ  15:28:23|cl-0    |  Nonce 0x0000000000c0f622
  ✘  15:28:23|stratum |  Error :� Malformed PoW result
  ✘  15:28:23|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:24|cl-0    |  Nonce 0x0000000000e3af77
  ✘  15:28:24|stratum |  Error :� Malformed PoW result
  ✘  15:28:24|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:24|cl-0    |  Nonce 0x0000000000f4f6a8
  ✘  15:28:24|stratum |  Error :� Malformed PoW result
  ✘  15:28:24|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:25|cl-0    |  Nonce 0x000000000123a5dc
  ✘  15:28:25|stratum |  Error :� Malformed PoW result
  ✘  15:28:25|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:25|cl-0    |  Nonce 0x000000000134893c
  ✘  15:28:25|stratum |  Error :� Malformed PoW result
  ✘  15:28:25|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:26|cl-0    |  Nonce 0x0000000001790277
  ✘  15:28:26|stratum |  Error :� Malformed PoW result
  ✘  15:28:26|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:27|cl-0    |  Nonce 0x00000000019032d4
  ✘  15:28:27|stratum |  Error :� Malformed PoW result
  ✘  15:28:27|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:27|cl-0    |  Nonce 0x0000000001a6604e
  ✘  15:28:27|stratum |  Error :� Malformed PoW result
  ✘  15:28:27|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:28|cl-0    |  Nonce 0x0000000001c74cea
  ✘  15:28:28|stratum |  Error :� Malformed PoW result
  ✘  15:28:28|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:28|cl-0    |  Nonce 0x0000000001d0cbbc
  ✘  15:28:28|stratum |  Error :� Malformed PoW result
  ✘  15:28:28|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  m  15:28:28|        |  Speed   3.53 Mh/s    gpu/0  3.53  [A0+0:R19+0:F0] Time: 00:00
  ℹ  15:28:28|cl-0    |  Nonce 0x0000000001f9aaaf
  ✘  15:28:28|stratum |  Error :� Malformed PoW result
  ✘  15:28:28|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:30|cl-0    |  Nonce 0x00000000024bda52
  ✘  15:28:30|stratum |  Error :� Malformed PoW result
  ✘  15:28:30|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:30|cl-0    |  Nonce 0x0000000002587c01
  ✘  15:28:30|stratum |  Error :� Malformed PoW result
  ✘  15:28:30|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:31|cl-0    |  Nonce 0x00000000027b5119
  ✘  15:28:31|stratum |  Error :� Malformed PoW result
  ✘  15:28:31|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:31|cl-0    |  Nonce 0x000000000288691d
  ✘  15:28:31|stratum |  Error :� Malformed PoW result
  ✘  15:28:31|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:32|cl-0    |  Nonce 0x0000000002c8d9a7
  ✘  15:28:32|stratum |  Error :� Malformed PoW result
  ✘  15:28:32|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:32|cl-0    |  Nonce 0x0000000002d2ca66
  ✘  15:28:32|stratum |  Error :� Malformed PoW result
  ✘  15:28:32|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  m  15:28:33|        |  Speed   3.72 Mh/s    gpu/0  3.72  [A0+0:R26+0:F0] Time: 00:00
  ℹ  15:28:33|cl-0    |  Nonce 0x00000000030ea2c1
  ✘  15:28:33|stratum |  Error :� Malformed PoW result
  ✘  15:28:33|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:34|cl-0    |  Nonce 0x000000000330abbe
  ✘  15:28:34|stratum |  Error :� Malformed PoW result
  ✘  15:28:34|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:34|cl-0    |  Nonce 0x0000000003442df5
  ✘  15:28:34|stratum |  Error :� Malformed PoW result
  ✘  15:28:34|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:35|cl-0    |  Nonce 0x0000000003769879
  ✘  15:28:35|stratum |  Error :� Malformed PoW result
  ✘  15:28:35|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:35|cl-0    |  Nonce 0x000000000382ba7e
  ✘  15:28:35|stratum |  Error :� Malformed PoW result
  ✘  15:28:35|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:36|cl-0    |  Nonce 0x0000000003b2edbe
  ✘  15:28:36|stratum |  Error :� Malformed PoW result
  ✘  15:28:36|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:37|cl-0    |  Nonce 0x0000000003d01de2
  ✘  15:28:37|stratum |  Error :� Malformed PoW result
  ✘  15:28:37|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:37|cl-0    |  Nonce 0x0000000003e067a5
  ✘  15:28:37|stratum |  Error :� Malformed PoW result
  ✘  15:28:37|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:38|cl-0    |  Nonce 0x000000000400cfc6
  ✘  15:28:38|stratum |  Error :� Malformed PoW result
  ✘  15:28:38|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:38|cl-0    |  Nonce 0x000000000418d6ac
  ✘  15:28:38|stratum |  Error :� Malformed PoW result
  ✘  15:28:38|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  m  15:28:38|        |  Speed   3.72 Mh/s    gpu/0  3.72  [A0+0:R36+0:F0] Time: 00:00
  ℹ  15:28:38|cl-0    |  Nonce 0x00000000043885e3
  ✘  15:28:38|stratum |  Error :� Malformed PoW result
  ✘  15:28:38|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:39|cl-0    |  Nonce 0x000000000444e90c
  ✘  15:28:39|stratum |  Error :� Malformed PoW result
  ✘  15:28:39|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:39|cl-0    |  Nonce 0x00000000045a581e
  ✘  15:28:39|stratum |  Error :� Malformed PoW result
  ✘  15:28:39|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:39|cl-0    |  Nonce 0x000000000467c8fe
  ✘  15:28:39|stratum |  Error :� Malformed PoW result
  ✘  15:28:39|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:40|cl-0    |  Nonce 0x0000000004995373
  ✘  15:28:40|stratum |  Error :� Malformed PoW result
  ✘  15:28:40|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:40|cl-0    |  Nonce 0x0000000004ad086b
  ✘  15:28:40|stratum |  Error :� Malformed PoW result
  ✘  15:28:40|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:41|cl-0    |  Nonce 0x0000000004c9364c
  ✘  15:28:41|stratum |  Error :� Malformed PoW result
  ✘  15:28:41|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:41|cl-0    |  Nonce 0x0000000004df82ae
  ✘  15:28:41|stratum |  Error :� Malformed PoW result
  ✘  15:28:41|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:41|cl-0    |  Nonce 0x0000000004ed387e
  ✘  15:28:41|stratum |  Error :� Malformed PoW result
  ✘  15:28:41|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:42|cl-0    |  Nonce 0x0000000004f14c04
  ✘  15:28:42|stratum |  Error :� Malformed PoW result
  ✘  15:28:42|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:42|cl-0    |  Nonce 0x000000000516ebb4
  ✘  15:28:42|stratum |  Error :� Malformed PoW result
  ✘  15:28:42|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:43|cl-0    |  Nonce 0x000000000530f4c7
  ✘  15:28:43|stratum |  Error :� Malformed PoW result
  ✘  15:28:43|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  m  15:28:43|        |  Speed   3.72 Mh/s    gpu/0  3.72  [A0+0:R48+0:F0] Time: 00:00
  ℹ  15:28:43|cl-0    |  Nonce 0x000000000543c245
  ✘  15:28:43|stratum |  Error :� Malformed PoW result
  ✘  15:28:43|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:44|cl-0    |  Nonce 0x00000000056173e1
  ✘  15:28:44|stratum |  Error :� Malformed PoW result
  ✘  15:28:44|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:44|cl-0    |  Nonce 0x000000000579ba39
  ✘  15:28:44|stratum |  Error :� Malformed PoW result
  ✘  15:28:44|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:44|cl-0    |  Nonce 0x00000000058dcb95
  ✘  15:28:44|stratum |  Error :� Malformed PoW result
  ✘  15:28:44|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:45|cl-0    |  Nonce 0x000000000596c88c
  ✘  15:28:45|stratum |  Error :� Malformed PoW result
  ✘  15:28:45|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:45|cl-0    |  Nonce 0x0000000005ab2868
  ✘  15:28:45|stratum |  Error :� Malformed PoW result
  ✘  15:28:45|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:45|cl-0    |  Nonce 0x0000000005c833de
  ✘  15:28:45|stratum |  Error :� Malformed PoW result
  ✘  15:28:45|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:46|cl-0    |  Nonce 0x0000000005d43842
  ✘  15:28:46|stratum |  Error :� Malformed PoW result
  ✘  15:28:46|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
^C  ℹ  15:28:46|cl-0    |  Nonce 0x0000000005e732e8
  ✘  15:28:46|stratum |  Error :� Malformed PoW result
  ✘  15:28:46|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
^C^C  ℹ  15:28:46|cl-0    |  Nonce 0x0000000005faa7ed
  ✘  15:28:46|stratum |  Error :� Malformed PoW result
  ✘  15:28:46|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
^C^C  ℹ  15:28:46|cl-0    |  Nonce 0x00000000060197cf
  ✘  15:28:46|stratum |  Error :� Malformed PoW result
  ✘  15:28:46|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
^C^C  ℹ  15:28:47|cl-0    |  Nonce 0x00000000061170c8
  ✘  15:28:47|stratum |  Error :� Malformed PoW result
  ✘  15:28:47|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:47|cl-0    |  Nonce 0x00000000062e294d
  ✘  15:28:47|stratum |  Error :� Malformed PoW result
  ✘  15:28:47|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
^C^C^C^C^C  ℹ  15:28:48|cl-0    |  Nonce 0x000000000645023a
  ✘  15:28:48|stratum |  Error :� Malformed PoW result
  ✘  15:28:48|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
^C^C^C  ℹ  15:28:48|cl-0    |  Nonce 0x0000000006566cb3
  ✘  15:28:48|stratum |  Error :� Malformed PoW result
  ✘  15:28:48|stratum |  **Rejected    0ms.   127.0.0.1 [127.0.0.1:3333]
  ℹ  15:28:48|        |  Shutting down...
  ℹ  15:28:48|        |  Disconnected from 127.0.0.1  [127.0.0.1:3333]
  ℹ  15:28:48|        |  Shutting down miners...
^Cbash-3.2$

As you can see, there is no "Extranonce set to" message.

If I downgrade to 0.15.0.dev0 then everything is working fine:

bash-3.2$ ./ethminer -P stratum2+tcp://0x5b475febb3018f41d0ac3c2f1a864bd102ab5a2e.w1:0.006@127.0.0.1:3333/ -G --farm-recheck 2000 --opencl-device 1 -t 5
  m  15:34:00|        |  ethminer version 0.15.0.dev0
  m  15:34:00|        |  Build: darwin / release +git. e9061af
  ℹ  15:34:00|        |  Found suitable OpenCL device [ AMD Radeon HD - FirePro D700 Compute Engine ] with 6442450944  bytes of GPU memory
  m  15:34:00|        |  not-connected
  ℹ  15:34:00|stratum |  Connected to 127.0.0.1:3333
  ℹ  15:34:00|stratum |  Spinning up miners...
 cl  15:34:00|cl-0    |  No work. Pause for 3 s.
  ℹ  15:34:00|stratum |  Extranonce set to 53d2
  ℹ  15:34:00|stratum |  Subscribed to stratum server
  ℹ  15:34:00|stratum |  Authorized worker 0x5b475febb3018f41d0ac3c2f1a864bd102ab5a2e.w1
  ℹ  15:34:00|stratum |  Difficulty set to 0.000232831
  ℹ  15:34:00|stratum |  New pool difficulty:  1.0000 megahashes
  ℹ  15:34:00|stratum |  Received new job #4ea4c76d… from 127.0.0.1
 cl  15:34:03|cl-0    |  New seed #00000000…
 cl  15:34:04|cl-0    |  Platform: Apple
 cl  15:34:04|cl-0    |  Device:   AMD Radeon HD - FirePro D700 Compute Engine  / OpenCL 1.2
 cl  15:34:04|cl-0    |  OpenCL kernel: Stable kernel
 cl  15:34:04|cl-0    |  Build info: <program source>:336:9: warning: comparison of integers of different signs: 'int' and 'const uint' (aka 'const unsigned int')
                if (i == thread_id)
      ~ ^  ~~~~~~~~~
<program source>:371:9: warning: comparison of integers of different signs: 'int' and 'const uint' (aka 'const unsigned int')
                if (i == thread_id)
      ~ ^  ~~~~~~~~~

 cl  15:34:04|cl-0    |  Creating light cache buffer, size 16776896
 cl  15:34:04|cl-0    |  Creating DAG buffer, size 1073739904
 cl  15:34:04|cl-0    |  Loading kernels
 cl  15:34:04|cl-0    |  Writing light cache buffer
 cl  15:34:04|cl-0    |  Creating buffer for header.
 cl  15:34:04|cl-0    |  Creating mining buffer
  m  15:34:05|        |  Speed   0.00 Mh/s    gpu/0  0.00  [A0+0:R0+0:F0] Time: 00:00
  ℹ  15:34:07|cl-0    |  0.999998  GB of DAG data generated in 2683 ms.
  ℹ  15:34:08|cl-0    |  Nonce 0x53d200000034fd2a submitted to 127.0.0.1
  ℹ  15:34:08|cl-0    |  Nonce 0x53d20000004ee5d9 submitted to 127.0.0.1
  ℹ  15:34:08|cl-0    |  Nonce 0x53d20000005d27ca submitted to 127.0.0.1
  ℹ  15:34:08|stratum |  **Accepted  in 47 ms.
  ℹ  15:34:08|stratum |  **Accepted  in 47 ms.
  ℹ  15:34:08|stratum |  **Accepted  in 51 ms.
  ℹ  15:34:08|stratum |  Received new job #f67ea9fc… from 127.0.0.1
  ℹ  15:34:09|cl-0    |  Nonce 0x53d200000068f2f9 submitted to 127.0.0.1
  ℹ  15:34:09|stratum |  **Accepted  in 3 ms.
  ℹ  15:34:09|cl-0    |  Nonce 0x53d20000000b6a78 submitted to 127.0.0.1
  ℹ  15:34:09|stratum |  **Accepted  in 3 ms.
  ℹ  15:34:09|cl-0    |  Nonce 0x53d20000001093a7 submitted to 127.0.0.1
  ℹ  15:34:09|stratum |  **Accepted  in 3 ms.
  ℹ  15:34:10|cl-0    |  Nonce 0x53d20000003da5cf submitted to 127.0.0.1
  ℹ  15:34:10|stratum |  **Accepted  in 3 ms.
  m  15:34:10|        |  Speed   3.14 Mh/s    gpu/0  3.14  [A7+0:R0+0:F0] Time: 00:00
  ℹ  15:34:10|cl-0    |  Nonce 0x53d2000000443274 submitted to 127.0.0.1
  ℹ  15:34:10|stratum |  **Accepted  in 3 ms.
^C  ℹ  15:34:11|cl-0    |  Nonce 0x53d20000005f2048 submitted to 127.0.0.1
  ℹ  15:34:11|stratum |  Received new job #528c2cc6… from 127.0.0.1
  ℹ  15:34:11|stratum |  **Accepted  (stale)  in 8 ms.
  ℹ  15:34:11|cl-0    |  Nonce 0x53d200000067b0f0 submitted to 127.0.0.1
  ℹ  15:34:11|stratum |  **Accepted  in 3 ms.
  ℹ  15:34:11|cl-0    |  Nonce 0x53d20000000a1290 submitted to 127.0.0.1
  ℹ  15:34:11|stratum |  **Accepted  in 3 ms.
  ℹ  15:34:12|cl-0    |  Nonce 0x53d200000017699a submitted to 127.0.0.1
  ℹ  15:34:12|stratum |  Received new job #71c66baf… from 127.0.0.1
  ℹ  15:34:12|stratum |  **Accepted  (stale)  in 8 ms.
  ℹ  15:34:12|cl-0    |  Nonce 0x53d20000002e1636 submitted to 127.0.0.1
  ℹ  15:34:12|stratum |  **Accepted  in 3 ms.
  ℹ  15:34:13|cl-0    |  Nonce 0x53d2000000018561 submitted to 127.0.0.1
  ℹ  15:34:13|stratum |  Received new job #54a8ff95… from 127.0.0.1
  ℹ  15:34:13|stratum |  **Accepted  (stale)  in 8 ms.
  ℹ  15:34:13|cl-0    |  Nonce 0x53d20000001d33e1 submitted to 127.0.0.1
  ℹ  15:34:13|stratum |  **Accepted  in 3 ms.
  ℹ  15:34:14|cl-0    |  Nonce 0x53d20000004e4e61 submitted to 127.0.0.1
  ℹ  15:34:14|stratum |  **Accepted  in 3 ms.
  ℹ  15:34:15|        |  Shutting down...
  ✘  15:34:15|stratum |  Read response failed: Operation canceled
  ℹ  15:34:15|        |  Disconnected from 127.0.0.1
  ℹ  15:34:15|stratum |  Disconnected from 127.0.0.1
  ℹ  15:34:15|        |  Shutting down miners...
  ℹ  15:34:15|stratum |  Shutting down miners...
bash-3.2$

You can see that extranonce value is processed properly and all generated shares are accepted by pool.


I'm currently using this implementation of stratum server:

https://github.com/CryptoManiac/open-ethereum-pool-pps/tree/POT

Alive stratum server is available at etherdig.net:4444.

@CryptoManiac
Copy link
Author

Just done checking newer releases.

0.15.0.dev0 - 0.15.0.dev4 are working fine
0.14.0.rc0 - 0.14.0.rc5 are working fine as well

Anything newer than either 0.15.0.dev4 or 0.14.0.rc5 doesn't work.

@AndreaLanfranchi
Copy link
Collaborator

AndreaLanfranchi commented May 10, 2018

0.15.x works fine with nicehash.
Original implementation of ethereumstratum protocol its nicehash's thus there is something badly implemented in the pool you're examining.

For instance running on 0.15.0.dev8-5+commit.a073a8c3

etherdig.net:4444 (ethereumstratum mode) does not send "mining.set_extranonce" notifications or sends em wrongly.

  m  15:02:20|ethminer|  ethminer 0.15.0.dev8-5+commit.a073a8c3
  m  15:02:20|ethminer|  Build: linux / release
 cu  15:02:21|ethminer|  Using grid size 8192 , block size 128
  ?  15:02:21|ethminer|  Selected pool etherdig.net:4444
  m  15:02:21|ethminer|  not-connected
  ?  15:02:21|stratum |  Trying 190.115.26.22:4444 ...
  ?  15:02:21|stratum |  Connected to etherdig.net  [190.115.26.22:4444]
  ?  15:02:21|stratum |  Spinning up miners...
  ?  15:02:21|stratum |  Subscribed to stratum server
  ?  15:02:21|stratum |  Authorized worker <censored>.BG01R01
  ?  15:02:21|stratum |  Difficulty set to 1
  ?  15:02:21|stratum |  New pool difficulty:  4.30 gigahashes 
  ?  15:02:21|stratum |  New job #bede87ad…   etherdig.net [190.115.26.22:4444]
  ?  15:02:22|stratum |  New job #675431d8…   etherdig.net [190.115.26.22:4444]
  m  15:02:26|ethminer|  Speed   0.00 Mh/s    gpu/0  0.00  gpu/1  0.00  gpu/2  0.00  gpu/3  0.00  gpu/4  0.00  gpu/5  0.00  [A0+0:R0+0:F0] Time: 00:00
 cu  15:02:27|cuda-1  |  Allocating light with size: 41155904
 cu  15:02:28|cuda-2  |  Allocating light with size: 41155904
 cu  15:02:28|cuda-0  |  Allocating light with size: 41155904
 cu  15:02:28|cuda-1  |  Generating mining buffers
 cu  15:02:28|cuda-3  |  Allocating light with size: 41155904
 cu  15:02:28|cuda-4  |  Allocating light with size: 41155904
 cu  15:02:28|cuda-5  |  Allocating light with size: 41155904
 cu  15:02:28|cuda-1  |  Generating DAG for GPU # 1  with dagSize: 2634022016  gridSize: 8192
 cu  15:02:28|cuda-2  |  Generating mining buffers
 cu  15:02:28|cuda-3  |  Generating mining buffers
 cu  15:02:28|cuda-0  |  Generating mining buffers
 cu  15:02:28|cuda-2  |  Generating DAG for GPU # 2  with dagSize: 2634022016  gridSize: 8192
 cu  15:02:28|cuda-4  |  Generating mining buffers
 cu  15:02:28|cuda-5  |  Generating mining buffers
 cu  15:02:28|cuda-3  |  Generating DAG for GPU # 3  with dagSize: 2634022016  gridSize: 8192
 cu  15:02:28|cuda-0  |  Generating DAG for GPU # 0  with dagSize: 2634022016  gridSize: 8192
 cu  15:02:28|cuda-4  |  Generating DAG for GPU # 4  with dagSize: 2634022016  gridSize: 8192
 cu  15:02:28|cuda-5  |  Generating DAG for GPU # 5  with dagSize: 2634022016  gridSize: 8192
  m  15:02:31|ethminer|  Speed   0.00 Mh/s    gpu/0  0.00  gpu/1  0.00  gpu/2  0.00  gpu/3  0.00  gpu/4  0.00  gpu/5  0.00  [A0+0:R0+0:F0] Time: 00:00
  m  15:02:36|ethminer|  Speed   0.00 Mh/s    gpu/0  0.00  gpu/1  0.00  gpu/2  0.00  gpu/3  0.00  gpu/4  0.00  gpu/5  0.00  [A0+0:R0+0:F0] Time: 00:00
  ?  15:02:36|stratum |  New job #ce4064d6…   etherdig.net [190.115.26.22:4444]
  m  15:02:41|ethminer|  Speed   0.00 Mh/s    gpu/0  0.00  gpu/1  0.00  gpu/2  0.00  gpu/3  0.00  gpu/4  0.00  gpu/5  0.00  [A0+0:R0+0:F0] Time: 00:00
  ?  15:02:44|stratum |  New job #4624f28b…   etherdig.net [190.115.26.22:4444]
  m  15:02:46|ethminer|  Speed   0.00 Mh/s    gpu/0  0.00  gpu/1  0.00  gpu/2  0.00  gpu/3  0.00  gpu/4  0.00  gpu/5  0.00  [A0+0:R0+0:F0] Time: 00:00
  m  15:02:51|ethminer|  Speed  54.53 Mh/s    gpu/0 13.11  gpu/1 11.53  gpu/2  7.86  gpu/3  6.29  gpu/4  7.86  gpu/5  7.86  [A0+0:R0+0:F0] Time: 00:00
  m  15:02:56|ethminer|  Speed  77.59 Mh/s    gpu/0 14.08  gpu/1 13.63  gpu/2 12.58  gpu/3 12.13  gpu/4 12.58  gpu/5 12.58  [A0+0:R0+0:F0] Time: 00:00
  ?  15:02:58|stratum |  New job #6401d413…   etherdig.net [190.115.26.22:4444]
  m  15:03:01|ethminer|  Speed  86.52 Mh/s    gpu/0 14.37  gpu/1 14.47  gpu/2 14.37  gpu/3 14.47  gpu/4 14.37  gpu/5 14.47  [A0+0:R0+0:F0] Time: 00:00
  m  15:03:06|ethminer|  Speed  86.52 Mh/s    gpu/0 14.37  gpu/1 14.47  gpu/2 14.37  gpu/3 14.47  gpu/4 14.37  gpu/5 14.47  [A0+0:R0+0:F0] Time: 00:00
  m  15:03:11|ethminer|  Speed  86.94 Mh/s    gpu/0 14.49  gpu/1 14.49  gpu/2 14.49  gpu/3 14.49  gpu/4 14.49  gpu/5 14.49  [A0+0:R0+0:F0] Time: 00:00
  ?  15:03:15|stratum |  New job #4b18cbef…   etherdig.net [190.115.26.22:4444]
  m  15:03:16|ethminer|  Speed  86.73 Mh/s    gpu/0 14.47  gpu/1 14.47  gpu/2 14.47  gpu/3 14.47  gpu/4 14.47  gpu/5 14.37  [A0+0:R0+0:F0] Time: 00:00
  ?  15:03:16|stratum |  New job #86ddd882…   etherdig.net [190.115.26.22:4444]
  ?  15:03:20|cuda-1  |  Nonce 0x151e928f1684d0fa
  ?  15:03:20|cuda-1  |  Exception thrown in Worker thread: basic_string::substr: __pos (which is 1646275616) > this->size() (which is 16)
  m  15:03:21|ethminer|  Speed  86.73 Mh/s    gpu/0 14.47  gpu/1 14.47  gpu/2 14.47  gpu/3 14.47  gpu/4 14.47  gpu/5 14.37  [A0+0:R0+0:F0] Time: 00:01
  ?  15:03:22|stratum |  Submit hashRate failed: ? Method not found 
  m  15:03:26|ethminer|  Speed  80.36 Mh/s    gpu/0 14.49  gpu/1  8.01  gpu/2 14.49  gpu/3 14.49  gpu/4 14.49  gpu/5 14.39  [A0+0:R0+0:F0] Time: 00:01
  m  15:03:31|ethminer|  Speed  75.32 Mh/s    gpu/0 14.42  gpu/1  2.88  gpu/2 14.51  gpu/3 14.51  gpu/4 14.51  gpu/5 14.51  [A0+0:R0+0:F0] Time: 00:01
  m  15:03:36|ethminer|  Speed  72.44 Mh/s    gpu/0 14.42  gpu/1  0.00  gpu/2 14.51  gpu/3 14.51  gpu/4 14.51  gpu/5 14.51  [A0+0:R0+0:F0] Time: 00:01
  ?  15:03:40|stratum |  New job #18fa552f…   etherdig.net [190.115.26.22:4444]
  m  15:03:41|ethminer|  Speed  72.33 Mh/s    gpu/0 14.43  gpu/1  0.00  gpu/2 14.43  gpu/3 14.52  gpu/4 14.43  gpu/5 14.52  [A0+0:R0+0:F0] Time: 00:01
  m  15:03:46|ethminer|  Speed  72.07 Mh/s    gpu/0 14.30  gpu/1  0.00  gpu/2 14.40  gpu/3 14.49  gpu/4 14.40  gpu/5 14.49  [A0+0:R0+0:F0] Time: 00:01
  m  15:03:51|ethminer|  Speed  72.07 Mh/s    gpu/0 14.30  gpu/1  0.00  gpu/2 14.40  gpu/3 14.49  gpu/4 14.40  gpu/5 14.49  [A0+0:R0+0:F0] Time: 00:01
  m  15:03:56|ethminer|  Speed  72.44 Mh/s    gpu/0 14.42  gpu/1  0.00  gpu/2 14.51  gpu/3 14.51  gpu/4 14.51  gpu/5 14.51  [A0+0:R0+0:F0] Time: 00:01
  ?  15:03:57|ethminer|  Shutting down...
  ?  15:03:57|ethminer|  Disconnected from etherdig.net  [190.115.26.22:4444]
  ?  15:03:57|ethminer|  Shutting down miners...

Same pool with ethproxy mode (etherdig.net:8008) works fine

  m  15:04:59|ethminer|  ethminer 0.15.0.dev8-5+commit.a073a8c3
  m  15:04:59|ethminer|  Build: linux / release
 cu  15:04:59|ethminer|  Using grid size 8192 , block size 128
  ?  15:05:00|ethminer|  Selected pool etherdig.net:8008
  m  15:05:00|ethminer|  not-connected
  ?  15:05:00|stratum |  Trying 190.115.26.22:8008 ...
  ?  15:05:00|stratum |  Connected to etherdig.net  [190.115.26.22:8008]
  ?  15:05:00|stratum |  Spinning up miners...
  ?  15:05:00|cuda-0  |  No work. Pause for 3 s.
  ?  15:05:00|cuda-1  |  No work. Pause for 3 s.
  ?  15:05:00|cuda-2  |  No work. Pause for 3 s.
  ?  15:05:00|cuda-3  |  No work. Pause for 3 s.
  ?  15:05:00|cuda-4  |  No work. Pause for 3 s.
  ?  15:05:00|cuda-5  |  No work. Pause for 3 s.
  ?  15:05:00|stratum |  Logged in to eth-proxy server
  ?  15:05:00|stratum |  New pool difficulty:  4.29 gigahashes 
  ?  15:05:00|stratum |  New job #4c4a28f2…   etherdig.net [190.115.26.22:8008]
  ?  15:05:01|stratum |  New job #2c48e5ec…   etherdig.net [190.115.26.22:8008]
  ?  15:05:03|cuda-0  |  Initialising miner 0
  ?  15:05:03|cuda-1  |  Initialising miner 1
  ?  15:05:03|cuda-2  |  Initialising miner 2
  ?  15:05:03|cuda-3  |  Initialising miner 3
  ?  15:05:03|cuda-4  |  Initialising miner 4
  ?  15:05:03|cuda-5  |  Initialising miner 5
 cu  15:05:03|cuda-0  |  Using device: GeForce GTX 1050 Ti  (Compute 6.1)
 cu  15:05:03|cuda-1  |  Using device: GeForce GTX 1050 Ti  (Compute 6.1)
 cu  15:05:03|cuda-2  |  Using device: GeForce GTX 1050 Ti  (Compute 6.1)
 cu  15:05:03|cuda-3  |  Using device: GeForce GTX 1050 Ti  (Compute 6.1)
 cu  15:05:03|cuda-4  |  Using device: GeForce GTX 1050 Ti  (Compute 6.1)
 cu  15:05:03|cuda-5  |  Using device: GeForce GTX 1050 Ti  (Compute 6.1)
 cu  15:05:04|cuda-0  |  Set Device to current
 cu  15:05:04|cuda-1  |  Set Device to current
 cu  15:05:04|cuda-1  |  Resetting device
 cu  15:05:04|cuda-2  |  Set Device to current
 cu  15:05:04|cuda-3  |  Set Device to current
 cu  15:05:04|cuda-3  |  Resetting device
 cu  15:05:04|cuda-4  |  Set Device to current
 cu  15:05:04|cuda-0  |  Resetting device
 cu  15:05:04|cuda-4  |  Resetting device
 cu  15:05:04|cuda-5  |  Set Device to current
 cu  15:05:04|cuda-5  |  Resetting device
 cu  15:05:04|cuda-2  |  Resetting device
  m  15:05:05|ethminer|  Speed   0.00 Mh/s    gpu/0  0.00  gpu/1  0.00  gpu/2  0.00  gpu/3  0.00  gpu/4  0.00  gpu/5  0.00  [A0+0:R0+0:F0] Time: 00:00
 cu  15:05:07|cuda-0  |  Allocating light with size: 41155904
 cu  15:05:07|cuda-2  |  Allocating light with size: 41155904
 cu  15:05:07|cuda-3  |  Allocating light with size: 41155904
 cu  15:05:07|cuda-0  |  Generating mining buffers
 cu  15:05:07|cuda-4  |  Allocating light with size: 41155904
 cu  15:05:07|cuda-1  |  Allocating light with size: 41155904
 cu  15:05:07|cuda-5  |  Allocating light with size: 41155904
 cu  15:05:07|cuda-2  |  Generating mining buffers
 cu  15:05:07|cuda-3  |  Generating mining buffers
 cu  15:05:07|cuda-0  |  Generating DAG for GPU # 0  with dagSize: 2634022016  gridSize: 8192
 cu  15:05:07|cuda-1  |  Generating mining buffers
 cu  15:05:07|cuda-5  |  Generating mining buffers
 cu  15:05:07|cuda-2  |  Generating DAG for GPU # 2  with dagSize: 2634022016  gridSize: 8192
 cu  15:05:07|cuda-4  |  Generating mining buffers
 cu  15:05:07|cuda-3  |  Generating DAG for GPU # 3  with dagSize: 2634022016  gridSize: 8192
 cu  15:05:07|cuda-1  |  Generating DAG for GPU # 1  with dagSize: 2634022016  gridSize: 8192
 cu  15:05:07|cuda-5  |  Generating DAG for GPU # 5  with dagSize: 2634022016  gridSize: 8192
 cu  15:05:07|cuda-4  |  Generating DAG for GPU # 4  with dagSize: 2634022016  gridSize: 8192
  m  15:05:10|ethminer|  Speed   0.00 Mh/s    gpu/0  0.00  gpu/1  0.00  gpu/2  0.00  gpu/3  0.00  gpu/4  0.00  gpu/5  0.00  [A0+0:R0+0:F0] Time: 00:00
  m  15:05:15|ethminer|  Speed   0.00 Mh/s    gpu/0  0.00  gpu/1  0.00  gpu/2  0.00  gpu/3  0.00  gpu/4  0.00  gpu/5  0.00  [A0+0:R0+0:F0] Time: 00:00
  ?  15:05:15|stratum |  New job #e8e31a5a…   etherdig.net [190.115.26.22:8008]
  m  15:05:20|ethminer|  Speed   0.00 Mh/s    gpu/0  0.00  gpu/1  0.00  gpu/2  0.00  gpu/3  0.00  gpu/4  0.00  gpu/5  0.00  [A0+0:R0+0:F0] Time: 00:00
  ?  15:05:23|stratum |  New job #1a4edbc2…   etherdig.net [190.115.26.22:8008]
  m  15:05:25|ethminer|  Speed   0.00 Mh/s    gpu/0  0.00  gpu/1  0.00  gpu/2  0.00  gpu/3  0.00  gpu/4  0.00  gpu/5  0.00  [A0+0:R0+0:F0] Time: 00:00
  m  15:05:30|ethminer|  Speed  34.60 Mh/s    gpu/0  9.96  gpu/1  7.34  gpu/2  4.72  gpu/3  3.15  gpu/4  4.72  gpu/5  4.72  [A0+0:R0+0:F0] Time: 00:00
  m  15:05:35|ethminer|  Speed  71.90 Mh/s    gpu/0 13.18  gpu/1 12.43  gpu/2 11.68  gpu/3 11.23  gpu/4 11.68  gpu/5 11.68  [A0+0:R0+0:F0] Time: 00:00
  m  15:05:40|ethminer|  Speed  86.82 Mh/s    gpu/0 14.47  gpu/1 14.47  gpu/2 14.47  gpu/3 14.47  gpu/4 14.47  gpu/5 14.47  [A0+0:R0+0:F0] Time: 00:00
  m  15:05:45|ethminer|  Speed  86.82 Mh/s    gpu/0 14.47  gpu/1 14.47  gpu/2 14.47  gpu/3 14.47  gpu/4 14.47  gpu/5 14.47  [A0+0:R0+0:F0] Time: 00:00
  ?  15:05:47|stratum |  New job #b4fbc5c2…   etherdig.net [190.115.26.22:8008]
  m  15:05:50|ethminer|  Speed  86.62 Mh/s    gpu/0 14.47  gpu/1 14.37  gpu/2 14.47  gpu/3 14.37  gpu/4 14.47  gpu/5 14.47  [A0+0:R0+0:F0] Time: 00:00
  m  15:05:55|ethminer|  Speed  86.62 Mh/s    gpu/0 14.47  gpu/1 14.37  gpu/2 14.47  gpu/3 14.37  gpu/4 14.47  gpu/5 14.47  [A0+0:R0+0:F0] Time: 00:00
  ?  15:05:59|stratum |  New job #012e6ee8…   etherdig.net [190.115.26.22:8008]
  m  15:06:00|ethminer|  Speed  86.82 Mh/s    gpu/0 14.47  gpu/1 14.47  gpu/2 14.47  gpu/3 14.47  gpu/4 14.47  gpu/5 14.47  [A0+0:R0+0:F0] Time: 00:01
  ?  15:06:02|cuda-2  |  Nonce 0x4d41a570e28646bb
  ?  15:06:02|stratum |  **Accepted   82ms.   etherdig.net [190.115.26.22:8008]
  m  15:06:05|ethminer|  Speed  86.29 Mh/s    gpu/0 14.38  gpu/1 14.38  gpu/2 14.38  gpu/3 14.38  gpu/4 14.38  gpu/5 14.38  [A1+0:R0+0:F0] Time: 00:01
  m  15:06:10|ethminer|  Speed  86.29 Mh/s    gpu/0 14.38  gpu/1 14.38  gpu/2 14.38  gpu/3 14.38  gpu/4 14.38  gpu/5 14.38  [A1+0:R0+0:F0] Time: 00:01
  m  15:06:15|ethminer|  Speed  86.82 Mh/s    gpu/0 14.47  gpu/1 14.47  gpu/2 14.47  gpu/3 14.47  gpu/4 14.47  gpu/5 14.47  [A1+0:R0+0:F0] Time: 00:01
  m  15:06:20|ethminer|  Speed  86.82 Mh/s    gpu/0 14.47  gpu/1 14.47  gpu/2 14.47  gpu/3 14.47  gpu/4 14.47  gpu/5 14.47  [A1+0:R0+0:F0] Time: 00:01
  m  15:06:25|ethminer|  Speed  86.82 Mh/s    gpu/0 14.47  gpu/1 14.47  gpu/2 14.47  gpu/3 14.47  gpu/4 14.47  gpu/5 14.47  [A1+0:R0+0:F0] Time: 00:01
  m  15:06:30|ethminer|  Speed  86.82 Mh/s    gpu/0 14.47  gpu/1 14.47  gpu/2 14.47  gpu/3 14.47  gpu/4 14.47  gpu/5 14.47  [A1+0:R0+0:F0] Time: 00:01
  ?  15:06:31|stratum |  New job #c7d7aad5…   etherdig.net [190.115.26.22:8008]
  m  15:06:35|ethminer|  Speed  86.20 Mh/s    gpu/0 14.37  gpu/1 14.37  gpu/2 14.37  gpu/3 14.37  gpu/4 14.37  gpu/5 14.37  [A1+0:R0+0:F0] Time: 00:01
  m  15:06:40|ethminer|  Speed  86.10 Mh/s    gpu/0 14.37  gpu/1 14.26  gpu/2 14.37  gpu/3 14.37  gpu/4 14.37  gpu/5 14.37  [A1+0:R0+0:F0] Time: 00:01
  ?  15:06:42|cuda-0  |  Nonce 0x4d41a370e9cbf651
  ?  15:06:42|stratum |  **Accepted   81ms.   etherdig.net [190.115.26.22:8008]
  m  15:06:45|ethminer|  Speed  86.84 Mh/s    gpu/0 14.49  gpu/1 14.39  gpu/2 14.49  gpu/3 14.49  gpu/4 14.49  gpu/5 14.49  [A2+0:R0+0:F0] Time: 00:01
  ?  15:06:45|stratum |  New job #53f26aa1…   etherdig.net [190.115.26.22:8008]
  m  15:06:50|ethminer|  Speed  86.31 Mh/s    gpu/0 14.37  gpu/1 14.47  gpu/2 14.37  gpu/3 14.37  gpu/4 14.37  gpu/5 14.37  [A2+0:R0+0:F0] Time: 00:01
  m  15:06:55|ethminer|  Speed  86.31 Mh/s    gpu/0 14.37  gpu/1 14.47  gpu/2 14.37  gpu/3 14.37  gpu/4 14.37  gpu/5 14.37  [A2+0:R0+0:F0] Time: 00:01
  m  15:07:00|ethminer|  Speed  86.84 Mh/s    gpu/0 14.49  gpu/1 14.39  gpu/2 14.49  gpu/3 14.49  gpu/4 14.49  gpu/5 14.49  [A2+0:R0+0:F0] Time: 00:02
  m  15:07:05|ethminer|  Speed  86.84 Mh/s    gpu/0 14.49  gpu/1 14.39  gpu/2 14.49  gpu/3 14.49  gpu/4 14.49  gpu/5 14.49  [A2+0:R0+0:F0] Time: 00:02
  m  15:07:10|ethminer|  Speed  86.84 Mh/s    gpu/0 14.49  gpu/1 14.39  gpu/2 14.49  gpu/3 14.49  gpu/4 14.49  gpu/5 14.49  [A2+0:R0+0:F0] Time: 00:02
  ?  15:07:10|stratum |  New job #f840bd8d…   etherdig.net [190.115.26.22:8008]
  ?  15:07:11|stratum |  New job #a825cde6…   etherdig.net [190.115.26.22:8008]
  m  15:07:15|ethminer|  Speed  86.63 Mh/s    gpu/0 14.37  gpu/1 14.47  gpu/2 14.37  gpu/3 14.47  gpu/4 14.47  gpu/5 14.47  [A2+0:R0+0:F0] Time: 00:02
  ?  15:07:18|stratum |  New job #f401ce47…   etherdig.net [190.115.26.22:8008]
  m  15:07:20|ethminer|  Speed  86.22 Mh/s    gpu/0 14.37  gpu/1 14.37  gpu/2 14.37  gpu/3 14.37  gpu/4 14.37  gpu/5 14.37  [A2+0:R0+0:F0] Time: 00:02
  m  15:07:25|ethminer|  Speed  86.34 Mh/s    gpu/0 14.42  gpu/1 14.33  gpu/2 14.51  gpu/3 14.33  gpu/4 14.33  gpu/5 14.42  [A2+0:R0+0:F0] Time: 00:02
  ?  15:07:27|stratum |  New job #85c68d40…   etherdig.net [190.115.26.22:8008]
  m  15:07:30|ethminer|  Speed  85.90 Mh/s    gpu/0 14.30  gpu/1 14.30  gpu/2 14.40  gpu/3 14.30  gpu/4 14.30  gpu/5 14.30  [A2+0:R0+0:F0] Time: 00:02
  ?  15:07:30|stratum |  New job #276f72f8…   etherdig.net [190.115.26.22:8008]
  m  15:07:35|ethminer|  Speed  85.90 Mh/s    gpu/0 14.21  gpu/1 14.30  gpu/2 14.30  gpu/3 14.40  gpu/4 14.40  gpu/5 14.30  [A2+0:R0+0:F0] Time: 00:02
  m  15:07:40|ethminer|  Speed  85.88 Mh/s    gpu/0 14.21  gpu/1 14.30  gpu/2 14.30  gpu/3 14.39  gpu/4 14.39  gpu/5 14.30  [A2+0:R0+0:F0] Time: 00:02
  ?  15:07:43|stratum |  New job #c3f81ed6…   etherdig.net [190.115.26.22:8008]
  m  15:07:45|ethminer|  Speed  86.78 Mh/s    gpu/0 14.42  gpu/1 14.51  gpu/2 14.51  gpu/3 14.42  gpu/4 14.42  gpu/5 14.51  [A2+0:R0+0:F0] Time: 00:02
  m  15:07:50|ethminer|  Speed  86.78 Mh/s    gpu/0 14.42  gpu/1 14.51  gpu/2 14.51  gpu/3 14.42  gpu/4 14.42  gpu/5 14.51  [A2+0:R0+0:F0] Time: 00:02
  ?  15:07:53|cuda-5  |  Nonce 0x4d41a870e8993f70
  ?  15:07:53|stratum |  **Accepted   82ms.   etherdig.net [190.115.26.22:8008]
  m  15:07:55|ethminer|  Speed  86.78 Mh/s    gpu/0 14.42  gpu/1 14.51  gpu/2 14.51  gpu/3 14.42  gpu/4 14.42  gpu/5 14.51  [A3+0:R0+0:F0] Time: 00:02
  m  15:08:00|ethminer|  Speed  86.79 Mh/s    gpu/0 14.44  gpu/1 14.52  gpu/2 14.52  gpu/3 14.44  gpu/4 14.44  gpu/5 14.44  [A3+0:R0+0:F0] Time: 00:03
  ?  15:08:04|cuda-1  |  Nonce 0x4d41a470f1ebf70b
  ?  15:08:04|stratum |  **Accepted   82ms.   etherdig.net [190.115.26.22:8008]
  m  15:08:05|ethminer|  Speed  86.87 Mh/s    gpu/0 14.44  gpu/1 14.52  gpu/2 14.52  gpu/3 14.44  gpu/4 14.44  gpu/5 14.52  [A4+0:R0+0:F0] Time: 00:03
  m  15:08:10|ethminer|  Speed  86.87 Mh/s    gpu/0 14.44  gpu/1 14.52  gpu/2 14.52  gpu/3 14.44  gpu/4 14.44  gpu/5 14.52  [A4+0:R0+0:F0] Time: 00:03
  m  15:08:15|ethminer|  Speed  86.87 Mh/s    gpu/0 14.44  gpu/1 14.52  gpu/2 14.52  gpu/3 14.44  gpu/4 14.44  gpu/5 14.52  [A4+0:R0+0:F0] Time: 00:03
  m  15:08:20|ethminer|  Speed  86.79 Mh/s    gpu/0 14.44  gpu/1 14.44  gpu/2 14.52  gpu/3 14.44  gpu/4 14.44  gpu/5 14.52  [A4+0:R0+0:F0] Time: 00:03
  ?  15:08:22|stratum |  New job #096300e1…   etherdig.net [190.115.26.22:8008]
  m  15:08:25|ethminer|  Speed  86.51 Mh/s    gpu/0 14.51  gpu/1 14.33  gpu/2 14.42  gpu/3 14.42  gpu/4 14.42  gpu/5 14.42  [A4+0:R0+0:F0] Time: 00:03
  m  15:08:30|ethminer|  Speed  86.51 Mh/s    gpu/0 14.51  gpu/1 14.33  gpu/2 14.42  gpu/3 14.42  gpu/4 14.42  gpu/5 14.42  [A4+0:R0+0:F0] Time: 00:03
  ?  15:08:31|cuda-5  |  Nonce 0x4d41a870e7840faa
  ?  15:08:31|stratum |  **Accepted  561ms.   etherdig.net [190.115.26.22:8008]
  m  15:08:35|ethminer|  Speed  86.51 Mh/s    gpu/0 14.51  gpu/1 14.33  gpu/2 14.42  gpu/3 14.42  gpu/4 14.42  gpu/5 14.42  [A5+0:R0+0:F0] Time: 00:03
  ?  15:08:35|stratum |  New job #b635817d…   etherdig.net [190.115.26.22:8008]
  m  15:08:40|ethminer|  Speed  86.78 Mh/s    gpu/0 14.51  gpu/1 14.42  gpu/2 14.51  gpu/3 14.42  gpu/4 14.42  gpu/5 14.51  [A5+0:R0+0:F0] Time: 00:03
  m  15:08:45|ethminer|  Speed  86.69 Mh/s    gpu/0 14.51  gpu/1 14.42  gpu/2 14.42  gpu/3 14.42  gpu/4 14.42  gpu/5 14.51  [A5+0:R0+0:F0] Time: 00:03
  m  15:08:50|ethminer|  Speed  86.79 Mh/s    gpu/0 14.52  gpu/1 14.44  gpu/2 14.44  gpu/3 14.44  gpu/4 14.44  gpu/5 14.52  [A5+0:R0+0:F0] Time: 00:03
  ?  15:08:52|stratum |  New job #629352c3…   etherdig.net [190.115.26.22:8008]
  m  15:08:55|ethminer|  Speed  86.34 Mh/s    gpu/0 14.42  gpu/1 14.42  gpu/2 14.42  gpu/3 14.33  gpu/4 14.33  gpu/5 14.42  [A5+0:R0+0:F0] Time: 00:03
  ?  15:08:56|cuda-5  |  Nonce 0x4d41a870e3970587
  ?  15:08:57|stratum |  **Accepted  157ms.   etherdig.net [190.115.26.22:8008]
  ?  15:08:58|cuda-5  |  Nonce 0x4d41a870e4f851f4
  ?  15:08:58|stratum |  **Accepted   88ms.   etherdig.net [190.115.26.22:8008]
  m  15:09:00|ethminer|  Speed  86.34 Mh/s    gpu/0 14.42  gpu/1 14.42  gpu/2 14.42  gpu/3 14.33  gpu/4 14.33  gpu/5 14.42  [A7+0:R0+0:F0] Time: 00:04
  ?  15:09:02|cuda-4  |  Nonce 0x4d41a770e84cf08b
  ?  15:09:02|stratum |  **Accepted   81ms.   etherdig.net [190.115.26.22:8008]
  m  15:09:05|ethminer|  Speed  86.34 Mh/s    gpu/0 14.42  gpu/1 14.42  gpu/2 14.42  gpu/3 14.33  gpu/4 14.33  gpu/5 14.42  [A8+0:R0+0:F0] Time: 00:04
  ?  15:09:07|stratum |  New job #2051c00c…   etherdig.net [190.115.26.22:8008]
  m  15:09:10|ethminer|  Speed  86.25 Mh/s    gpu/0 14.51  gpu/1 14.33  gpu/2 14.33  gpu/3 14.33  gpu/4 14.33  gpu/5 14.42  [A8+0:R0+0:F0] Time: 00:04
  m  15:09:15|ethminer|  Speed  86.34 Mh/s    gpu/0 14.51  gpu/1 14.42  gpu/2 14.33  gpu/3 14.33  gpu/4 14.33  gpu/5 14.42  [A8+0:R0+0:F0] Time: 00:04
  ?  15:09:18|stratum |  New job #6f7d472e…   etherdig.net [190.115.26.22:8008]
  m  15:09:20|ethminer|  Speed  85.90 Mh/s    gpu/0 14.33  gpu/1 14.42  gpu/2 14.24  gpu/3 14.24  gpu/4 14.24  gpu/5 14.42  [A8+0:R0+0:F0] Time: 00:04
  m  15:09:25|ethminer|  Speed  86.34 Mh/s    gpu/0 14.33  gpu/1 14.51  gpu/2 14.33  gpu/3 14.33  gpu/4 14.33  gpu/5 14.51  [A8+0:R0+0:F0] Time: 00:04
  m  15:09:30|ethminer|  Speed  86.34 Mh/s    gpu/0 14.33  gpu/1 14.51  gpu/2 14.33  gpu/3 14.33  gpu/4 14.33  gpu/5 14.51  [A8+0:R0+0:F0] Time: 00:04
  m  15:09:35|ethminer|  Speed  86.79 Mh/s    gpu/0 14.44  gpu/1 14.52  gpu/2 14.44  gpu/3 14.44  gpu/4 14.44  gpu/5 14.52  [A8+0:R0+0:F0] Time: 00:04
  m  15:09:40|ethminer|  Speed  86.79 Mh/s    gpu/0 14.44  gpu/1 14.52  gpu/2 14.44  gpu/3 14.44  gpu/4 14.44  gpu/5 14.52  [A8+0:R0+0:F0] Time: 00:04
  ?  15:09:40|stratum |  New job #75f59044…   etherdig.net [190.115.26.22:8008]
  m  15:09:45|ethminer|  Speed  86.69 Mh/s    gpu/0 14.42  gpu/1 14.51  gpu/2 14.42  gpu/3 14.42  gpu/4 14.42  gpu/5 14.51  [A8+0:R0+0:F0] Time: 00:04
  m  15:09:50|ethminer|  Speed  86.69 Mh/s    gpu/0 14.42  gpu/1 14.51  gpu/2 14.42  gpu/3 14.42  gpu/4 14.42  gpu/5 14.51  [A8+0:R0+0:F0] Time: 00:04
  ?  15:09:51|cuda-4  |  Nonce 0x4d41a770e8872d3d
  ?  15:09:51|stratum |  **Accepted   85ms.   etherdig.net [190.115.26.22:8008]
  ?  15:09:51|cuda-0  |  Nonce 0x4d41a370e8a8231b
  ?  15:09:51|stratum |  **Accepted   81ms.   etherdig.net [190.115.26.22:8008]
  m  15:09:55|ethminer|  Speed  86.79 Mh/s    gpu/0 14.44  gpu/1 14.52  gpu/2 14.44  gpu/3 14.44  gpu/4 14.44  gpu/5 14.52  [A10+0:R0+0:F0] Time: 00:04
  ?  15:09:57|stratum |  New job #46157bdb…   etherdig.net [190.115.26.22:8008]
  m  15:10:00|ethminer|  Speed  86.60 Mh/s    gpu/0 14.42  gpu/1 14.42  gpu/2 14.42  gpu/3 14.42  gpu/4 14.42  gpu/5 14.51  [A10+0:R0+0:F0] Time: 00:05
  ?  15:10:04|stratum |  New job #3862596a…   etherdig.net [190.115.26.22:8008]
  m  15:10:05|ethminer|  Speed  86.82 Mh/s    gpu/0 14.49  gpu/1 14.49  gpu/2 14.49  gpu/3 14.39  gpu/4 14.49  gpu/5 14.49  [A10+0:R0+0:F0] Time: 00:05
  m  15:10:10|ethminer|  Speed  86.46 Mh/s    gpu/0 14.36  gpu/1 14.45  gpu/2 14.36  gpu/3 14.36  gpu/4 14.36  gpu/5 14.55  [A10+0:R0+0:F0] Time: 00:05
  m  15:10:15|ethminer|  Speed  86.34 Mh/s    gpu/0 14.42  gpu/1 14.42  gpu/2 14.33  gpu/3 14.33  gpu/4 14.33  gpu/5 14.51  [A10+0:R0+0:F0] Time: 00:05
  ?  15:10:16|stratum |  New job #5cf82017…   etherdig.net [190.115.26.22:8008]
  ?  15:10:17|cuda-5  |  Nonce 0x4d41a870e0407a95
  ?  15:10:17|stratum |  **Accepted   82ms.   etherdig.net [190.115.26.22:8008]
  m  15:10:20|ethminer|  Speed  86.25 Mh/s    gpu/0 14.42  gpu/1 14.42  gpu/2 14.33  gpu/3 14.33  gpu/4 14.33  gpu/5 14.42  [A11+0:R0+0:F0] Time: 00:05
  ?  15:10:20|ethminer|  Shutting down...
  ?  15:10:20|ethminer|  Disconnected from etherdig.net  [190.115.26.22:8008]
  ?  15:10:20|ethminer|  Shutting down miners...

Finally using original Nicehash works ok.

  m  15:10:43|ethminer|  ethminer 0.15.0.dev8-5+commit.a073a8c3
  m  15:10:43|ethminer|  Build: linux / release
 cu  15:10:43|ethminer|  Using grid size 8192 , block size 128
  ?  15:10:43|ethminer|  Selected pool daggerhashimoto.eu.nicehash.com:3353
  m  15:10:43|ethminer|  not-connected
  ?  15:10:43|stratum |  Trying 159.122.29.199:3353 ...
  ?  15:10:43|stratum |  Connected to daggerhashimoto.eu.nicehash.com  [159.122.29.199:3353]
  ?  15:10:43|stratum |  Spinning up miners...
  ?  15:10:43|cuda-0  |  No work. Pause for 3 s.
  ?  15:10:43|cuda-1  |  No work. Pause for 3 s.
  ?  15:10:43|cuda-2  |  No work. Pause for 3 s.
  ?  15:10:43|cuda-3  |  No work. Pause for 3 s.
  ?  15:10:43|cuda-4  |  No work. Pause for 3 s.
  ?  15:10:43|cuda-5  |  No work. Pause for 3 s.
  ?  15:10:44|stratum |  Subscribed to stratum server
  ?  15:10:44|stratum |  Extranonce set to 02248b
  ?  15:10:44|stratum |  Authorized worker <censored>.BG01R01
  ?  15:10:44|stratum |  Difficulty set to 0.5
  ?  15:10:44|stratum |  New pool difficulty:  2.15 gigahashes 
  ?  15:10:44|stratum |  New job #944e80ae…   daggerhashimoto.eu.nicehash.com [159.122.29.199:3353]
  ?  15:10:46|cuda-0  |  Initialising miner 0
  ?  15:10:46|cuda-1  |  Initialising miner 1
  ?  15:10:46|cuda-2  |  Initialising miner 2
  ?  15:10:46|cuda-3  |  Initialising miner 3
  ?  15:10:46|cuda-4  |  Initialising miner 4
  ?  15:10:46|cuda-5  |  Initialising miner 5
 cu  15:10:46|cuda-0  |  Using device: GeForce GTX 1050 Ti  (Compute 6.1)
 cu  15:10:46|cuda-1  |  Using device: GeForce GTX 1050 Ti  (Compute 6.1)
 cu  15:10:46|cuda-2  |  Using device: GeForce GTX 1050 Ti  (Compute 6.1)
 cu  15:10:46|cuda-3  |  Using device: GeForce GTX 1050 Ti  (Compute 6.1)
 cu  15:10:46|cuda-4  |  Using device: GeForce GTX 1050 Ti  (Compute 6.1)
 cu  15:10:46|cuda-5  |  Using device: GeForce GTX 1050 Ti  (Compute 6.1)
 cu  15:10:48|cuda-0  |  Set Device to current
 cu  15:10:48|cuda-2  |  Set Device to current
 cu  15:10:48|cuda-1  |  Set Device to current
 cu  15:10:48|cuda-3  |  Set Device to current
 cu  15:10:48|cuda-4  |  Set Device to current
 cu  15:10:48|cuda-3  |  Resetting device
 cu  15:10:48|cuda-4  |  Resetting device
 cu  15:10:48|cuda-5  |  Set Device to current
 cu  15:10:48|cuda-2  |  Resetting device
 cu  15:10:48|cuda-1  |  Resetting device
 cu  15:10:48|cuda-5  |  Resetting device
 cu  15:10:48|cuda-0  |  Resetting device
  m  15:10:48|ethminer|  Speed   0.00 Mh/s    gpu/0  0.00  gpu/1  0.00  gpu/2  0.00  gpu/3  0.00  gpu/4  0.00  gpu/5  0.00  [A0+0:R0+0:F0] Time: 00:00
  ?  15:10:50|stratum |  New job #6c964b9a…   daggerhashimoto.eu.nicehash.com [159.122.29.199:3353]
 cu  15:10:50|cuda-3  |  Allocating light with size: 41155904
 cu  15:10:50|cuda-1  |  Allocating light with size: 41155904
 cu  15:10:50|cuda-3  |  Generating mining buffers
 cu  15:10:50|cuda-0  |  Allocating light with size: 41155904
 cu  15:10:50|cuda-1  |  Generating mining buffers
 cu  15:10:50|cuda-5  |  Allocating light with size: 41155904
 cu  15:10:50|cuda-2  |  Allocating light with size: 41155904
 cu  15:10:50|cuda-3  |  Generating DAG for GPU # 3  with dagSize: 2634022016  gridSize: 8192
 cu  15:10:50|cuda-4  |  Allocating light with size: 41155904
 cu  15:10:50|cuda-0  |  Generating mining buffers
 cu  15:10:50|cuda-5  |  Generating mining buffers
 cu  15:10:50|cuda-2  |  Generating mining buffers
 cu  15:10:51|cuda-1  |  Generating DAG for GPU # 1  with dagSize: 2634022016  gridSize: 8192
 cu  15:10:51|cuda-0  |  Generating DAG for GPU # 0  with dagSize: 2634022016  gridSize: 8192
 cu  15:10:51|cuda-5  |  Generating DAG for GPU # 5  with dagSize: 2634022016  gridSize: 8192
 cu  15:10:51|cuda-2  |  Generating DAG for GPU # 2  with dagSize: 2634022016  gridSize: 8192
 cu  15:10:51|cuda-4  |  Generating mining buffers
 cu  15:10:51|cuda-4  |  Generating DAG for GPU # 4  with dagSize: 2634022016  gridSize: 8192
  m  15:10:53|ethminer|  Speed   0.00 Mh/s    gpu/0  0.00  gpu/1  0.00  gpu/2  0.00  gpu/3  0.00  gpu/4  0.00  gpu/5  0.00  [A0+0:R0+0:F0] Time: 00:00
  ?  15:10:57|stratum |  New job #106da32f…   daggerhashimoto.eu.nicehash.com [159.122.29.199:3353]
  m  15:10:58|ethminer|  Speed   0.00 Mh/s    gpu/0  0.00  gpu/1  0.00  gpu/2  0.00  gpu/3  0.00  gpu/4  0.00  gpu/5  0.00  [A0+0:R0+0:F0] Time: 00:00
  ?  15:10:59|stratum |  New job #a4e4247e…   daggerhashimoto.eu.nicehash.com [159.122.29.199:3353]
  m  15:11:03|ethminer|  Speed   0.00 Mh/s    gpu/0  0.00  gpu/1  0.00  gpu/2  0.00  gpu/3  0.00  gpu/4  0.00  gpu/5  0.00  [A0+0:R0+0:F0] Time: 00:00
  m  15:11:08|ethminer|  Speed   0.00 Mh/s    gpu/0  0.00  gpu/1  0.00  gpu/2  0.00  gpu/3  0.00  gpu/4  0.00  gpu/5  0.00  [A0+0:R0+0:F0] Time: 00:00
  ?  15:11:10|stratum |  New job #a333ff76…   daggerhashimoto.eu.nicehash.com [159.122.29.199:3353]
  ?  15:11:11|stratum |  New job #8083d528…   daggerhashimoto.eu.nicehash.com [159.122.29.199:3353]
  m  15:11:13|ethminer|  Speed  60.52 Mh/s    gpu/0 14.55  gpu/1 11.64  gpu/2  8.73  gpu/3  8.73  gpu/4  8.15  gpu/5  8.73  [A0+0:R0+0:F0] Time: 00:00
  ?  15:11:17|stratum |  New job #9648fe62…   daggerhashimoto.eu.nicehash.com [159.122.29.199:3353]
  m  15:11:18|ethminer|  Speed  79.09 Mh/s    gpu/0 14.34  gpu/1 13.72  gpu/2 12.80  gpu/3 12.80  gpu/4 12.64  gpu/5 12.80  [A0+0:R0+0:F0] Time: 00:00
  m  15:11:23|ethminer|  Speed  86.20 Mh/s    gpu/0 14.26  gpu/1 14.47  gpu/2 14.37  gpu/3 14.37  gpu/4 14.37  gpu/5 14.37  [A0+0:R0+0:F0] Time: 00:00
  ?  15:11:27|stratum |  New job #78fc6fea…   daggerhashimoto.eu.nicehash.com [159.122.29.199:3353]
  m  15:11:28|ethminer|  Speed  86.62 Mh/s    gpu/0 14.37  gpu/1 14.47  gpu/2 14.47  gpu/3 14.47  gpu/4 14.37  gpu/5 14.47  [A0+0:R0+0:F0] Time: 00:00
  ?  15:11:29|stratum |  New job #252026be…   daggerhashimoto.eu.nicehash.com [159.122.29.199:3353]
  m  15:11:33|ethminer|  Speed  86.32 Mh/s    gpu/0 14.47  gpu/1 14.37  gpu/2 14.37  gpu/3 14.47  gpu/4 14.26  gpu/5 14.37  [A0+0:R0+0:F0] Time: 00:00
  m  15:11:38|ethminer|  Speed  86.36 Mh/s    gpu/0 14.39  gpu/1 14.39  gpu/2 14.39  gpu/3 14.49  gpu/4 14.29  gpu/5 14.39  [A0+0:R0+0:F0] Time: 00:00
  ?  15:11:39|stratum |  New job #2d8364ce…   daggerhashimoto.eu.nicehash.com [159.122.29.199:3353]
  ?  15:11:41|stratum |  New job #28f56151…   daggerhashimoto.eu.nicehash.com [159.122.29.199:3353]
  m  15:11:43|ethminer|  Speed  85.90 Mh/s    gpu/0 14.26  gpu/1 14.37  gpu/2 14.37  gpu/3 14.26  gpu/4 14.26  gpu/5 14.37  [A0+0:R0+0:F0] Time: 00:01
  m  15:11:48|ethminer|  Speed  85.90 Mh/s    gpu/0 14.26  gpu/1 14.37  gpu/2 14.37  gpu/3 14.26  gpu/4 14.26  gpu/5 14.37  [A0+0:R0+0:F0] Time: 00:01
  ?  15:11:51|stratum |  New job #1df8b479…   daggerhashimoto.eu.nicehash.com [159.122.29.199:3353]
  ?  15:11:51|stratum |  New job #b7368f06…   daggerhashimoto.eu.nicehash.com [159.122.29.199:3353]
  m  15:11:53|ethminer|  Speed  85.79 Mh/s    gpu/0 14.37  gpu/1 14.26  gpu/2 14.26  gpu/3 14.26  gpu/4 14.37  gpu/5 14.26  [A0+0:R0+0:F0] Time: 00:01
  ?  15:11:58|stratum |  New job #cf425baf…   daggerhashimoto.eu.nicehash.com [159.122.29.199:3353]
  m  15:11:58|ethminer|  Speed  85.78 Mh/s    gpu/0 14.33  gpu/1 14.22  gpu/2 14.22  gpu/3 14.33  gpu/4 14.33  gpu/5 14.33  [A0+0:R0+0:F0] Time: 00:01
  m  15:12:03|ethminer|  Speed  86.33 Mh/s    gpu/0 14.37  gpu/1 14.37  gpu/2 14.37  gpu/3 14.37  gpu/4 14.37  gpu/5 14.47  [A0+0:R0+0:F0] Time: 00:01
  ?  15:12:05|stratum |  New job #9101ba48…   daggerhashimoto.eu.nicehash.com [159.122.29.199:3353]
  m  15:12:08|ethminer|  Speed  86.67 Mh/s    gpu/0 14.49  gpu/1 14.40  gpu/2 14.49  gpu/3 14.40  gpu/4 14.49  gpu/5 14.40  [A0+0:R0+0:F0] Time: 00:01
  ?  15:12:09|cuda-0  |  Nonce 0x02248b0002ba7017
  ?  15:12:09|stratum |  **Accepted   86ms.   daggerhashimoto.eu.nicehash.com [159.122.29.199:3353]
  m  15:12:13|ethminer|  Speed  86.51 Mh/s    gpu/0 14.42  gpu/1 14.33  gpu/2 14.51  gpu/3 14.42  gpu/4 14.42  gpu/5 14.42  [A1+0:R0+0:F0] Time: 00:01
  ?  15:12:16|stratum |  New job #292102f5…   daggerhashimoto.eu.nicehash.com [159.122.29.199:3353]
  m  15:12:18|ethminer|  Speed  86.35 Mh/s    gpu/0 14.46  gpu/1 14.29  gpu/2 14.46  gpu/3 14.38  gpu/4 14.38  gpu/5 14.38  [A1+0:R0+0:F0] Time: 00:01
  m  15:12:23|ethminer|  Speed  86.43 Mh/s    gpu/0 14.51  gpu/1 14.33  gpu/2 14.51  gpu/3 14.42  gpu/4 14.33  gpu/5 14.33  [A1+0:R0+0:F0] Time: 00:01
  ?  15:12:24|cuda-3  |  Nonce 0x02248b18079dc200
  ?  15:12:25|stratum |  **Accepted   89ms.   daggerhashimoto.eu.nicehash.com [159.122.29.199:3353]
  ?  15:12:26|stratum |  New job #fff273a0…   daggerhashimoto.eu.nicehash.com [159.122.29.199:3353]
  m  15:12:28|ethminer|  Speed  86.39 Mh/s    gpu/0 14.43  gpu/1 14.34  gpu/2 14.52  gpu/3 14.43  gpu/4 14.34  gpu/5 14.34  [A2+0:R0+0:F0] Time: 00:01
  ?  15:12:30|cuda-5  |  Nonce 0x02248b2803c1b72f
  ?  15:12:30|stratum |  **Accepted   74ms.   daggerhashimoto.eu.nicehash.com [159.122.29.199:3353]
  m  15:12:33|ethminer|  Speed  86.69 Mh/s    gpu/0 14.42  gpu/1 14.42  gpu/2 14.51  gpu/3 14.51  gpu/4 14.42  gpu/5 14.42  [A3+0:R0+0:F0] Time: 00:01
  ?  15:12:36|stratum |  New job #531ba5c1…   daggerhashimoto.eu.nicehash.com [159.122.29.199:3353]
  m  15:12:38|ethminer|  Speed  86.57 Mh/s    gpu/0 14.36  gpu/1 14.44  gpu/2 14.44  gpu/3 14.44  gpu/4 14.44  gpu/5 14.44  [A3+0:R0+0:F0] Time: 00:01
  m  15:12:43|ethminer|  Speed  86.60 Mh/s    gpu/0 14.51  gpu/1 14.42  gpu/2 14.42  gpu/3 14.42  gpu/4 14.42  gpu/5 14.42  [A3+0:R0+0:F0] Time: 00:02
  ?  15:12:46|stratum |  New job #521262de…   daggerhashimoto.eu.nicehash.com [159.122.29.199:3353]
  m  15:12:48|ethminer|  Speed  86.45 Mh/s    gpu/0 14.48  gpu/1 14.48  gpu/2 14.31  gpu/3 14.39  gpu/4 14.39  gpu/5 14.39  [A3+0:R0+0:F0] Time: 00:02
  m  15:12:53|ethminer|  Speed  86.51 Mh/s    gpu/0 14.51  gpu/1 14.42  gpu/2 14.42  gpu/3 14.51  gpu/4 14.33  gpu/5 14.33  [A3+0:R0+0:F0] Time: 00:02
  ?  15:12:55|stratum |  New job #c47a7c55…   daggerhashimoto.eu.nicehash.com [159.122.29.199:3353]
  ?  15:12:55|cuda-3  |  Nonce 0x02248b18003cd4e4
  ?  15:12:55|stratum |  **Accepted   86ms.   daggerhashimoto.eu.nicehash.com [159.122.29.199:3353]
  ?  15:12:56|stratum |  New job #628f3426…   daggerhashimoto.eu.nicehash.com [159.122.29.199:3353]
  m  15:12:58|ethminer|  Speed  85.71 Mh/s    gpu/0 14.30  gpu/1 14.40  gpu/2 14.21  gpu/3 14.30  gpu/4 14.30  gpu/5 14.21  [A4+0:R0+0:F0] Time: 00:02
  ?  15:13:01|stratum |  New job #256102b8…   daggerhashimoto.eu.nicehash.com [159.122.29.199:3353]
  m  15:13:03|ethminer|  Speed  85.69 Mh/s    gpu/0 14.26  gpu/1 14.37  gpu/2 14.26  gpu/3 14.26  gpu/4 14.26  gpu/5 14.26  [A4+0:R0+0:F0] Time: 00:02
  m  15:13:08|ethminer|  Speed  86.24 Mh/s    gpu/0 14.43  gpu/1 14.34  gpu/2 14.34  gpu/3 14.43  gpu/4 14.34  gpu/5 14.34  [A4+0:R0+0:F0] Time: 00:02
  ?  15:13:11|stratum |  Extranonce set to 199946
  ?  15:13:11|stratum |  Difficulty set to 0.5
  ?  15:13:11|stratum |  New job #c149765f…   daggerhashimoto.eu.nicehash.com [159.122.29.199:3353]
  m  15:13:13|ethminer|  Speed  86.21 Mh/s    gpu/0 14.35  gpu/1 14.35  gpu/2 14.35  gpu/3 14.45  gpu/4 14.35  gpu/5 14.35  [A4+0:R0+0:F0] Time: 00:02
  ?  15:13:14|ethminer|  Shutting down...
  ?  15:13:14|ethminer|  Disconnected from daggerhashimoto.eu.nicehash.com  [159.122.29.199:3353]
  ?  15:13:14|ethminer|  Shutting down miners...

As you can see extranonces are processed correctly.

We've done some work to ensure messages are properly formatted.

Please track down all messages output'ed from your pool.

@AndreaLanfranchi
Copy link
Collaborator

@CryptoManiac
Copy link
Author

CryptoManiac commented May 10, 2018

@AndreaLanfranchi

Ethereumstratum specs can be checked here

I followed this specification while implementing protocol on my pool. Everything is functional with PhoenixMiner, Claymore's Dual Ethereum miner and specified subset of ethminer releases.

Plus apparently sends incorrect data about diff (set to 1 ???)

Please read the specification first. Nicehash's Stratum uses bitcoin like difficulty notation. Difficulty 1.0 means 2^32.

etherdig.net:4444 (ethereumstratum mode) does not send "mining.set_extranonce" notifications or sends em wrongly.

Ability to send mining.set_extranonce notification is not a part of protocol, it's just an extension.

According to specification, pool is not obliged to send extranonces via mining.set_extranonce notification. The mining.set_extranonce is used only if it's neccessary to change extranonce prefix without reestablishing connection to the pool.

Just check the following lines:
https://github.com/nicehash/Specifications/blob/master/EthereumStratum_NiceHash_v1.0.0.txt#L183

If miner has subscribed to extranonce notifications (detailed explanations
is here: https://www.nicehash.com/?p=software#devs), then pool ___may___ change 
miner's extranonce by sending:

{ 
  "id": null, 
  "method": "mining.set_extranonce", 
  "params": [
    "af4c"
  ]
}\n

New extranonce is valid for all NEXT jobs sent by the pool.

"May" doesn't mean "has to".

On the other hand, according to specification, Nicehash stratum pool must set the extranonce via response to mining.subscribe request:

https://github.com/nicehash/Specifications/blob/master/EthereumStratum_NiceHash_v1.0.0.txt#L152

Second parameter of result array is extranonce (in HEX) set by pool.

Ignoring the extranonce which was set by mining.subscribe response is incorrect behaviour. Even if some pools are setting extranonce prefix again via mining.set_extranonce notifications.

Of course I can add mining.set_extranonce notification but this would seem as no more than workaround, not a correct implementation... Because it will break those clients which doesn't provide support for mining.set_extranonce notifications.

@jean-m-cyr
Copy link
Contributor

Ignoring the extranonce which was set by mining.subscribe response is incorrect behaviour.

Agreed.

@AndreaLanfranchi
Copy link
Collaborator

Extranonce is not ignored if the proper formatting of jsonrpc message are met.

Ethereumstratum specs depict

{
  "id": 1, 
  "result": [
    [
      "mining.notify", 
      "ae6812eb4cd7735a302a8a9dd95cf71f",
      "EthereumStratum/1.0.0"
    ],
    "a2eea0"
  ],
  "error": null
}\n

But your pool responds

{
	"id" : 1,
	"jsonrpc" : "2.0",
	"result" : 
	[
		[
			"mining.notify",
			"e3d2440e707a26aac666fc20f5b244b2",
			"EthereumStratum/1.0.0"
		],
		"0acb1d"
	]
}

That extra "jsonrpc="2.0" makes us fallback into examining "params" member (as per notifications of Jsonrpc 2.0).

jPrm = responseObject.get(((_rpcVer==1) ? "result":"params"), Json::Value::null);

@AndreaLanfranchi
Copy link
Collaborator

If you want to endorse jsonrpc 2.0 it think it should be

{
	"id" : 1,
	"jsonrpc" : "2.0",
	"result" : true,
"params" :
	[
		[
			"mining.notify",
			"e3d2440e707a26aac666fc20f5b244b2",
			"EthereumStratum/1.0.0"
		],
		"0acb1d"
	]
}

@AndreaLanfranchi
Copy link
Collaborator

Otherwise we need to implement a trick to handle this "mixed" behavior as Ethereumstratum specs never use "jsonrpc" : "2.0"

@CryptoManiac
Copy link
Author

CryptoManiac commented May 10, 2018

@AndreaLanfranchi Ok, thanks. I'll try this.

@CryptoManiac
Copy link
Author

CryptoManiac commented May 10, 2018

@AndreaLanfranchi What about job messages?

Do I need to provide jsonrpc version field there or not? Nicehash messages are seem as correct jsonrpc 2.0 messages but this field is not defined by specification.

When sending nicehash stratum responses without version field I'm getting error messages which are asking me to obey the jsonrpc specification.

So it seems that I have to send jsonrpc:"2.0" in every message with exception for response to mining.subscribe. Of course I'll do this in my implementation but this seem inconsistent to me.

And it confuses me a lot.

@AndreaLanfranchi
Copy link
Collaborator

AndreaLanfranchi commented May 10, 2018

Could you please provide an example of any of your message(s) which triggers compliance warning ?

@CryptoManiac
Copy link
Author

@AndreaLanfranchi

Thise are messages in a typical session done via dummy client:

<< { "id": 1, "jsonrpc": "2.0", "method": "mining.subscribe", "params": [ "EthereumMiner/1.0.0", "EthereumStratum/1.0.0" ]}

>> {"id":1,"result":[["mining.notify","1380fa5c34dede8ea0fd47f73d652040","EthereumStratum/1.0.0"],"5f4e17"]}

<< { "id": 2, "jsonrpc": "2.0", "method": "mining.authorize", "params": [ "0xd28696b34a8d64cd3c0c8368c253f40212791eef.worker123", "password" ] }

>> {"id":2,"jsonrpc":"2.0","result":true}

>> {"id":null,"jsonrpc":"2.0","method":"mining.set_difficulty","params":[1]}

>> {"id":null,"jsonrpc":"2.0","method":"mining.notify","params":["14f","eeaf89f399eb3a301462d94af98532e0b70fa15bbf6b8af0a7deadaf5e11b68d","43b29407a26c87b909cf3d6adb48198cf9758d631661ca36bc1b39af1bc8b7e4",true]}

>> {"id":null,"jsonrpc":"2.0","method":"mining.notify","params":["150","eeaf89f399eb3a301462d94af98532e0b70fa15bbf6b8af0a7deadaf5e11b68d","cc95e193c7a3c9519b7bb62717a77b6a1bf6cc71700ee3b94360c2ceea7a56f8",true]}

>> {"id":null,"jsonrpc":"2.0","method":"mining.notify","params":["151","eeaf89f399eb3a301462d94af98532e0b70fa15bbf6b8af0a7deadaf5e11b68d","784caf10efb42101fd44009f36924541d9374152c68a715b6d6a01b50a17511a",true]}

>> {"id":null,"jsonrpc":"2.0","method":"mining.notify","params":["152","eeaf89f399eb3a301462d94af98532e0b70fa15bbf6b8af0a7deadaf5e11b68d","ab7a783b28a506d89368d8ad093ce043bbd93594c3057f6e82e03a494f864bb5",true]}

@CryptoManiac
Copy link
Author

CryptoManiac commented May 10, 2018

Ethminer works fine with such message format.

When I remove "jsonrpc" field, I'm getting this message:

  ✘  10:20:48|stratum |  Pool sent an invalid jsonrpc (v2) response ...
  ✘  10:20:48|stratum |  Do not blame ethminer for this. Ask pool devs to honor http://www.jsonrpc.org/specification 
  ✘  10:20:48|stratum |  Disconnecting ...

So it looks like I have to stick with jsonrpc 2.0 specification in some messages, while in others I don't have to.

I can understand this but nicehash specification doesn't require us to obey the jsonrpc standard. How such dilemma can be resolved?

@AndreaLanfranchi
Copy link
Collaborator

AndreaLanfranchi commented May 10, 2018

Do you remove the "jsonrpc" member or do you value it to null ?
If no "jsonrpc" member we detect version 1 of jsonrpc while the error you're reporting is for version 2

I mean this

{"id":null,"jsonrpc":null,"method":"mining.notify","params":["14f","eeaf89f399eb3a301462d94af98532e0b70fa15bbf6b8af0a7deadaf5e11b68d","43b29407a26c87b909cf3d6adb48198cf9758d631661ca36bc1b39af1bc8b7e4",true]}
is not valid.

In short ... if you insert jsonrpc member it has to be exactly valued "2.0" otherwise this member MUST not be present.

@AndreaLanfranchi
Copy link
Collaborator

Could you report transcript from a "real" failing conversation ?

@CryptoManiac
Copy link
Author

CryptoManiac commented May 10, 2018

@AndreaLanfranchi I remove it entirely, so messages are looking exactly as they are presented in specification.

Just for example, if I'm sending job without version field:

{"id":null,"method":"mining.notify","params":["14f","eeaf89f399eb3a301462d94af98532e0b70fa15bbf6b8af0a7deadaf5e11b68d","43b29407a26c87b909cf3d6adb48198cf9758d631661ca36bc1b39af1bc8b7e4",true]}

then I'm getting standard compliance error message.

@AndreaLanfranchi
Copy link
Collaborator

Which error ? Version 1 or Version 2 ?

@CryptoManiac
Copy link
Author

CryptoManiac commented May 10, 2018

@AndreaLanfranchi

Quote from the miner's output:

  ✘  18:19:01|stratum |  Pool sent an invalid jsonrpc (v2) response ...
  ✘  18:19:01|stratum |  Do not blame ethminer for this. Ask pool devs to honor http://www.jsonrpc.org/specification
  ✘  18:19:01|stratum |  Disconnecting ...

This is a reaction to message which I provided.

@AndreaLanfranchi
Copy link
Collaborator

Could you give a test address of pool for me to perform some debug ?

@CryptoManiac
Copy link
Author

@AndreaLanfranchi I'll set it up now, will report you back in a matter of hour.

@CryptoManiac
Copy link
Author

CryptoManiac commented May 10, 2018

@AndreaLanfranchi

188.65.212.49:13333 - this server responds exactly according to nicehash specification, i.e. without version field. Getting standard compliance error with latest ethminer.

188.65.212.49:16666 - this server provides "jsonrpc" field, which is set to "2.0", for all messages except response to mining.authorize request. It works fine with latest ethminer.

@jean-m-cyr
Copy link
Contributor

@CryptoManiac Do you mind if I run a couple of tests against those?

@CryptoManiac
Copy link
Author

@jean-m-cyr Nope, of course. It's purposed to run tests :)

@AndreaLanfranchi
Copy link
Collaborator

@CryptoManiac
here is the problem. mining.set_difficulty has member jsonrpc but it's not valued to "2.0" this breaks jsonrpc 2.0.
Either you remove member or you value it properly.

  ℹ  17:44:25|stratum |  {
	"id" : null,
	"jsonrpc" : "",
	"method" : "mining.set_difficulty",
	"params" : 
	[
		0.00034924596548080444
	]
}

@CryptoManiac
Copy link
Author

@AndreaLanfranchi Understood. So, ethminer runs JSON-RPC compliance checkings for any kind of stratum protocol, am I right about that?

@jean-m-cyr
Copy link
Contributor

@CryptoManiac Ok, done. Thanks

@CryptoManiac
Copy link
Author

CryptoManiac commented May 10, 2018

@jean-m-cyr These servers will be available for some time, but I wouldn't rely on them in the future. They may be stopped if owner will need this machine to test some other things.

@CryptoManiac
Copy link
Author

Thank you guys, I think it's not relevant anymore.

@AndreaLanfranchi
Copy link
Collaborator

So, ethminer runs JSON-RPC compliance checkings for any kind of stratum protocol, am I right about that?

Yes ... you're right.

@jean-m-cyr
Copy link
Contributor

It seems other miners aren't as rigorous, and nor were we till recently. I only test nicehash against daggerhashimoto.usa.nicehash.com and they are compliant. I wonder about other nicehash pools?

@CryptoManiac
Copy link
Author

@jean-m-cyr It looks like my pool is the only one for now.

This seems to be a result of absence of official support for unix-like systems by its reference implementation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants