Skip to content

Commit

Permalink
add nonce prefix for EthereumStratum/1.0.0 to fix compatibility with …
Browse files Browse the repository at this point in the history
…gminer
  • Loading branch information
kings-yao authored Feb 22, 2022
1 parent 5e57b60 commit 5e73555
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DownSessionETH.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ func (down *DownSessionETH) parseSubscribeRequest(request *JSONRPCLineETH) (resu
sessionIDString := Uint16ToHex(down.sessionID)
// message example: {"id":1,"jsonrpc":"2.0","result":[["mining.notify","0001","EthereumStratum/1.0.0"],"0001"],"error":null}
// don't set nonce prefix
result = JSONRPCArray{JSONRPCArray{"mining.notify", sessionIDString, EthereumStratumVersion}}
result = JSONRPCArray{JSONRPCArray{"mining.notify", sessionIDString, EthereumStratumVersion}, "00"}
}
}

Expand Down

0 comments on commit 5e73555

Please sign in to comment.