nicehash / excavator

NiceHash's proprietary low-level CUDA miner
https://www.nicehash.com
53 stars 19 forks source link

algorithm.list gives incomplete response #276

Closed YoRyan closed 5 years ago

YoRyan commented 5 years ago

Sending an algorithm.list command over the TCP API results in a truncated JSON response. See the following sequence.

$ cat >commands.json <<EOF
[
    {"time":0,"commands":[
        {"id":0,"method":"subscribe","params":["nhmp.usa.nicehash.com:3200","34HKWdzLxWBduUfJE9JxaFhoXnfC6gmePG.testrig"]},
        {"id":1,"method":"algorithm.add","params":["equihash"]},
        {"id":2,"method":"worker.add","params":["equihash","0"]}
    ]}
]
EOF
$ excavator -c commands.json &
$ echo '{"id":0,"method":"algorithm.list","params":[]}' | nc 127.0.0.1 3456
{"algorithms":[{"algorithm_id":24,"name":"equihash","speed":0.0,"uptime":7.394344329833984,"benchmark":false,"accepted_shares":0,"rejected_shares":0,"got_job":false,"received_jobs":0,"current_job_difficulty":

Possibly related to #39 ?

t4nja commented 5 years ago

@YoRyan What version of excavator are you running? Which OS?

YoRyan commented 5 years ago

The latest, 1.5.13a. My OS is Fedora 29 and my Nvidia driver version is 410.73. I realize it's not Ubuntu, but every other excavator function works without issue.

t4nja commented 5 years ago

Thanks for the report. We are able to reproduce the problem. This will be resolved in the upcoming release.

t4nja commented 5 years ago

This is fixed in the latest release (1.5.14a version).