Browse Source
With the provided code snippet, the getNotificationResponse function will now include additional logic to handle the "mining.notify" response differently based on the stratum mode. For regular stratum mode (EthProxy), it will return the initial response with "EthereumStratum/1.0.0" and the extranonce. For NiceHash stratum mode, it will construct the response using data from the current block template (t) and return the appropriate response for NiceHash miners. Please note that the getNotificationResponse function is used in the handleTCPMessage function when handling "mining.subscribe" requests for NiceHash mode. Make sure the rest of the code is properly set up to handle NiceHash stratum mode based on your specific requirements. Remember to integrate this code into your existing Go codebase and test it thoroughly to ensure it works as expected. If you have any further questions or need additional assistance, feel free to ask!master
1 changed files with 21 additions and 0 deletions
Loading…
Reference in new issue