From 5e73555810512a5b479d177af88f2d2b413f52f0 Mon Sep 17 00:00:00 2001 From: kings-yao <62045790+kings-yao@users.noreply.github.com> Date: Tue, 22 Feb 2022 16:22:30 +0800 Subject: [PATCH] add nonce prefix for EthereumStratum/1.0.0 to fix compatibility with gminer --- DownSessionETH.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DownSessionETH.go b/DownSessionETH.go index 895127f..a4fc413 100644 --- a/DownSessionETH.go +++ b/DownSessionETH.go @@ -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"} } }