Cache the binary generation of coinbase1 and 2 on stratum, avoiding a hex2bin of coinbase1 and 2 on each work generation.
Cache the hex2bin of pool nonce1 in stratum, avoiding hex2bin on each work generation.
Fix --scrypt being required before scrypt intensities on command line or not working at all via config files.
Add the ability to downgrade a write variant of the cglocks.
We should be using a cg_wlock initially in generating stratum and gbt work before downgrading the lock.
Cache as much of the gbt coinbase as possible to avoid doing unnecessary hex2bin conversion on every work generation with gbt.
Merge remote-tracking branch 'conman/master'