This updates the code to properly support pooled mining via stratum.
In particular:
The extra nonce provided by the pool is now correctly set and used
The length for the second extra nonce provided by the pool is now validated
The second extra nonce length now respects the provided length
The mining code now uses the correct offset within the serialized work data for the second extra nonce to ensure the pool properly reconstructs the header
The provided timestamp is now updated locally as the mining process is underway and the final timestamp is submitted along with the share as expected
The correct network parameters for the active network are now passed into the stratum code so the right difficulties are used
The stratum fields that represent numbers are now consistently in little endian per the stratum "spec" (such that it is)
The "second generation tx" field is now ignored because it does not apply to Decred
Finally, various loggging messages have been cleaned up and the job id is no longer incorrectly expected to be numeric when logging it.
This updates the code to properly support pooled mining via stratum.
In particular:
Finally, various loggging messages have been cleaned up and the job id is no longer incorrectly expected to be numeric when logging it.