StratuMITM icon indicating copy to clipboard operation
StratuMITM copied to clipboard

extranonce error

Open Canefis opened this issue 11 months ago • 5 comments

Extranonce 6, but required 7 on kheavyhash algo. On other algo no issue. Other soft same pool on kheavyhash algo no issue too

Canefis avatar Jan 21 '25 18:01 Canefis

Hmm, there's not much information to go off of to diagnose the issue you're having... If possible it would be ideal to share the logs (produced by this proxy and/or on the miner), and your setup (are you using the rewrite mode or just forward? etc.)

Given that this repo is very old, and when developed was only tested on eth and zec, there's a pretty good chance that some parameters may not be properly passed through in the rewrite mode. You will likely need to do some modifications for newer algorithms like kheavyhash that might have additional parameters...

jabbany avatar Jan 22 '25 03:01 jabbany

I try orders from nicehash on different pools. Some pools says invalid job order received.

I tryed normal rigs on the same pool and proxy hashrate is ok.

Only orders from nicehash throw error: or extranonce or invalid job received

What code should I change?

Logs: [rw=cred] Client CL+488bb7dfc257b33eaf00799c7fb568466b677992446726de576ec6cbc9ff 0b3f connected. [rw=cred.*9ff0b3f.local] {"id":1,"method":"mining.subscribe","params":["NiceHash /1.0.0"]} [rw=cred.*9ff0b3f.rewrite] Rewrite subscribe client AgentID:NiceHash/1.0.0 [rw=cred.*9ff0b3f.local] {"id":500,"method":"mining.authorize","params":["Canefi s.319993","x"]} [rw=cred.*9ff0b3f.rewrite] Replace credentials U:Canefis.319993 P:x with config ones. [rw=cred.*9ff0b3f.remote] {"id":1,"result":[null,"114c",6],"error":null} [rw=cred.*9ff0b3f.remote] {"id":null,"method":"mining.set_extranonce","params":[ "114c",6]} [rw=cred.*9ff0b3f.remote] {"id":500,"result":true,"error":null} [rw=cred.*9ff0b3f.remote] {"id":null,"method":"mining.set_difficulty","params":[ 2048]} [rw=cred.*9ff0b3f.remote] {"id":null,"method":"mining.notify","params":["49fab14 ",[11880578343671443000,16898030260955650000,14674025123397601000,15537382748408 971000],1737744295787]} [rw=cred] Client CL+488bb7dfc257b33eaf00799c7fb568466b677992446726de576ec6cbc9ff 0b3f disconnected. [rw=cred] Client CL+c0673670c1bcc67076ac7b5fb7647d51c76126a0282f457ba8e1454f78b7 fa31 connected. [rw=cred.*8b7fa31.local] {"id":1,"method":"mining.subscribe","params":["NiceHash /1.0.0"]} [rw=cred.*8b7fa31.rewrite] Rewrite subscribe client AgentID:NiceHash/1.0.0 [rw=cred.*8b7fa31.local] {"id":500,"method":"mining.authorize","params":["Canefi s.319993","x"]} [rw=cred.*8b7fa31.rewrite] Replace credentials U:Canefis.319993 P:x with config ones. [rw=cred.*8b7fa31.remote] {"id":1,"result":[null,"268b",6],"error":null} [rw=cred.*8b7fa31.remote] {"id":null,"method":"mining.set_extranonce","params":[ "268b",6]} [rw=cred.*8b7fa31.remote] {"id":500,"result":true,"error":null} [rw=cred.*8b7fa31.remote] {"id":null,"method":"mining.set_difficulty","params":[ 2048]} [rw=cred.*8b7fa31.remote] {"id":null,"method":"mining.notify","params":["52a6b14 ",[4736845579496254000,17753565617595740000,10461102580631005000,122220513577201 68000],1737744330006]} [rw=cred] Client CL+c0673670c1bcc67076ac7b5fb7647d51c76126a0282f457ba8e1454f78b7 fa31 disconnected.

Canefis avatar Jan 24 '25 17:01 Canefis

I am using rewrite mode

Canefis avatar Jan 24 '25 17:01 Canefis

Forward mode log:

[rw=fwd] Client CL+e5f55c5d2a89bd2de62b3a2fee5ef75ef930bfab9bf58f9cbaad4604aef37 f38 connected. [rw=fwd.*ef37f38.local] {"id":1,"method":"mining.subscribe","params":["NiceHash/ 1.0.0"]} [rw=fwd.*ef37f38.local] {"id":500,"method":"mining.authorize","params":["Canefis .319993","x"]} [rw=fwd.*ef37f38.remote] {"id":1,"result":[null,"2c",7],"error":null} [rw=fwd.*ef37f38.remote] {"id":null,"method":"set_extranonce","params":["2c",7]} [rw=fwd.*ef37f38.shares] REJECTED M#null R=undefined [rw=fwd.*ef37f38.remote] {"id":500,"result":true,"error":null} [rw=fwd.*ef37f38.remote] {"id":null,"method":"mining.set_difficulty","params":[1 6384]} [rw=fwd.*ef37f38.shares] REJECTED M#null R=undefined [rw=fwd.*ef37f38.remote] {"id":null,"method":"mining.notify","params":["2682e13" ,[2119689665110396700,3995880576576884700,8601925725218358000,169092592946404660 0],1737780754532]} [rw=fwd.*ef37f38.shares] REJECTED M#null R=undefined [rw=fwd.*ef37f38.remote] {"id":null,"method":"mining.notify","params":["2686e13" ,[10576639889924368000,12406391561733016000,8446187384306181000,5069234596134486 00],1737780754972]} [rw=fwd.*ef37f38.shares] REJECTED M#null R=undefined

Canefis avatar Jan 25 '25 04:01 Canefis

Hash on pool is ok and working. Why in rewright mode proxy pick up wrong nonce information from the server? By logs pick up 6, but on forward mode pick up 7 and all ok?

Canefis avatar Jan 25 '25 04:01 Canefis