From a37f3a4e5eb4e3a880c6580f83d76a03140999cd Mon Sep 17 00:00:00 2001 From: YihaoPeng Date: Tue, 22 Feb 2022 16:26:58 +0800 Subject: [PATCH] add comments about the padding nonce prefix of EtheteumStratum/1.0.0 --- DownSessionETH.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DownSessionETH.go b/DownSessionETH.go index a4fc413..ee72cd2 100644 --- a/DownSessionETH.go +++ b/DownSessionETH.go @@ -301,7 +301,7 @@ func (down *DownSessionETH) parseSubscribeRequest(request *JSONRPCLineETH) (resu down.protocol = ProtocolEthereumStratum 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 + // Add a padding nonce prefix. BTCAgent doesn't need a nonce prefix, but gminer has problems when it's missing. result = JSONRPCArray{JSONRPCArray{"mining.notify", sessionIDString, EthereumStratumVersion}, "00"} } }