Minimise risk of nonce2 overflow with small nonce2 lengths by always encoding the work little endian, and increasing the maximum size of nonce2 to 8 bytes.
Merge pull request #16 from bitbandi/master

Fix extranonce2 size bug