Skip to content

Commit a37f3a4

Browse files
author
YihaoPeng
authored
add comments about the padding nonce prefix of EtheteumStratum/1.0.0
1 parent 5e73555 commit a37f3a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DownSessionETH.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ func (down *DownSessionETH) parseSubscribeRequest(request *JSONRPCLineETH) (resu
301301
down.protocol = ProtocolEthereumStratum
302302
sessionIDString := Uint16ToHex(down.sessionID)
303303
// message example: {"id":1,"jsonrpc":"2.0","result":[["mining.notify","0001","EthereumStratum/1.0.0"],"0001"],"error":null}
304-
// don't set nonce prefix
304+
// Add a padding nonce prefix. BTCAgent doesn't need a nonce prefix, but gminer has problems when it's missing.
305305
result = JSONRPCArray{JSONRPCArray{"mining.notify", sessionIDString, EthereumStratumVersion}, "00"}
306306
}
307307
}

0 commit comments

Comments
 (0)