Build varint correctly for share submission and sleep 5 seconds before retrying submit.
Remove varint display debugging.
Remove txn size debugging and enlarge gbt block string to prevent overflow.
Insert the extra nonce and remaining data in the correct position in the coinbase.
Use a standard function for flipping bytes.
Calculate midstate for gbt work and remove now unused variable.
Flip all 80 bytes in the flip function which was wrongly named flip256 for its purpose.
Tidy up device error counts
Use correct length for offsetting extra nonce and remaining data.
missing a break.
Correct last few components of GBT block generation courtesy of Luke-jr.
Allow the longpoll thread to start with GBT and only set the longpollid once.
Manage appropriate response codes for share submission with GBT.
Update GBT longpollid every time we request a new longpoll.
Retrieve a new block template if more than 30 seconds has elapsed since the last one to keep the data current and test the pool is still alive.
Use existing pool submit_old bool from gbt data.
Generate a gbt work item from longpoll when required to set new block and message appropriately.
Change status window message for GBT connected pools versus LP.
Swab, don't just swap the bytes in the GBT target.
Discard record of stratum shares sent and report lost shares on disconnection since they will never be reported back.