Skip to content

Commit

Permalink
add comments about the padding nonce prefix of EtheteumStratum/1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
YihaoPeng authored Feb 22, 2022
1 parent 5e73555 commit a37f3a4
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 @@ -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"}
}
}
Expand Down

0 comments on commit a37f3a4

Please sign in to comment.