robvanmieghem / gominer

GPU miner for siacoin in go
BSD 2-Clause "Simplified" License
159 stars 75 forks source link

Sia/Decred Luxor Mining: Error submitting solution - Unauthorized User #34

Open drobakowski opened 6 years ago

drobakowski commented 6 years ago

Hi @robvanmieghem,

thanks for your work on this miner! I was playing around and tried to use it for mining Sia and Decred on a MacPro but unfortunately I don't get credited for my hashrate/share nor will it be shown on any mining pools like siamining, nanopool or luxor. I've installed gominer and I'm able to start gominer successfully wit the following command:

gominer -url stratum+tcp://eu.luxor.tech:3333 -user <wallet_address>.<worker_name>
2018/01/21 15:27:50 Platform Apple
2018/01/21 15:27:50 1 device(s) found:
2018/01/21 15:27:50 0 - GPU - AMD Radeon HD Tahiti XT Prototype Compute Engine
2018/01/21 15:27:50 Starting SIA mining
2018/01/21 15:27:50 0 - Initializing GPU - AMD Radeon HD Tahiti XT Prototype Compute Engine
2018/01/21 15:27:50 Connecting to eu.luxor.tech:3333
2018/01/21 15:27:50 0 - Global item size: 268435456 (Intensity 0 ) - Local item size: 256
2018/01/21 15:27:50 0 - Initialized  GPU - AMD Radeon HD Tahiti XT Prototype Compute Engine
2018/01/21 15:27:50 0 - No work ready
2018/01/21 15:27:51 ERROR fetching work - No job received from stratum server yet
2018/01/21 15:27:51 Stratum server changed difficulty to 25.1
2018/01/21 15:27:51 New job received from stratum server
2018/01/21 15:27:51 Authorization of <wallet_address>.<worker_name> : true
2018/01/21 15:27:52 0 - Continuing
...
0-867.9 Total: 867.9 MH/s  2018/01/21 15:31:20 New job received from stratum server
0-868.1 Total: 868.1 MH/s  2018/01/21 15:31:42 0 - Yay, solution found!
0-867.3 Total: 867.3 MH/s  2018/01/21 15:31:42 0 - Error submitting solution - Unauthorized User
0-867.8 Total: 867.8 MH/s  2018/01/21 15:31:50 New job received from stratum server
0-867.9 Total: 867.9 MH/s  2018/01/21 15:32:50 Stratum server changed difficulty to 7.209574468085107
2018/01/21 15:32:50 New job received from stratum server
0-867.9 Total: 867.9 MH/s  2018/01/21 15:33:03 0 - Yay, solution found!
0-867.4 Total: 867.4 MH/s  2018/01/21 15:33:03 0 - Error submitting solution - Unauthorized User
0-868.0 Total: 868.0 MH/s  2018/01/21 15:33:06 0 - Yay, solution found!
0-867.2 Total: 867.2 MH/s  2018/01/21 15:33:06 0 - Error submitting solution - Unauthorized User
...

I'm not sure if there is maybe a problem in communicating with the stratum server or have I missed something? I've also tested my MacBook and got the same errors. Where Luxor at least can find my address but shows 0 MH/s, Nanopool an Siamining don't even find my address at all.

robvanmieghem commented 6 years ago

@drobakowski Thank you for reporting this issue, For nanopool, this is normal as they have a weird stratum protocol which they are adapting: https://github.com/robvanmieghem/gominer/issues/29 , siamining should definitely work as I test it there myself, I'll try to find time later today to see what is wrong with luxor.tech and revisit the authorization code for siamining. Btw, what processor do you have? Those Tahiti cards are perfect, that can not be the problem., I used Tahiti's when I created the first version of gominer.

drobakowski commented 6 years ago

@robvanmieghem thanks for taking the time to look into it. I'm using 2 x Intel Xeon E5620 @ 2.40GHz CPUs.

gominer log running with flag -cpu:

2018/01/22 10:39:48 Platform Apple
2018/01/22 10:39:48 2 device(s) found:
2018/01/22 10:39:48 0 - CPU - Intel(R) Xeon(R) CPU           E5620  @ 2.40GHz
2018/01/22 10:39:48 1 - GPU - AMD Radeon HD Tahiti XT Prototype Compute Engine
2018/01/22 10:39:48 Starting SIA mining
2018/01/22 10:39:48 1 - Initializing GPU - AMD Radeon HD Tahiti XT Prototype Compute Engine
2018/01/22 10:39:48 Connecting to eu.luxor.tech:3333
2018/01/22 10:39:48 0 - Initializing CPU - Intel(R) Xeon(R) CPU           E5620  @ 2.40GHz
2018/01/22 10:39:48 0 - Global item size: 268435456 (Intensity 0 ) - Local item size: 128
2018/01/22 10:39:48 0 - Initialized  CPU - Intel(R) Xeon(R) CPU           E5620  @ 2.40GHz
...
drobakowski commented 6 years ago

I don't get any error in console while mining for siamining.com, but even after a day I didn't get any valid share for my address according to siamining.com homepage.

gominer mining for siamining.com:

0-868.1 Total: 868.1 MH/s  2018/01/22 10:46:59 0 - Yay, solution found!
0-867.9 Total: 867.9 MH/s  2018/01/22 10:47:01 0 - Yay, solution found!
0-868.1 Total: 868.1 MH/s  2018/01/22 10:47:02 0 - Yay, solution found!
...

siamining.com stats for my address even after a day:

This address has not submitted any shares yet. If you have just started mining, please come back in a minute.

Looks like this relates to the same problem as with luxor.tech.

jackyang-hk commented 6 years ago

i have found the save problem with siamining.com that stats can not sync for

This address has not submitted any shares yet. If you have just started mining, please come back in a minute.

while gominer shows

0-323.1 Total: 323.1 MH/s 2018/01/22 10:46:59 0 - Yay, solution found!