|
|
@ -2054,13 +2054,12 @@ process_block(ckpool_t *ckp, const workbase_t *wb, const char *coinbase, const i |
|
|
|
char hexcoinbase[1024]; |
|
|
|
char hexcoinbase[1024]; |
|
|
|
bool ret; |
|
|
|
bool ret; |
|
|
|
|
|
|
|
|
|
|
|
gbt_block = ckalloc(1024); |
|
|
|
|
|
|
|
flip_32(flip32, hash); |
|
|
|
flip_32(flip32, hash); |
|
|
|
__bin2hex(blockhash, flip32, 32); |
|
|
|
__bin2hex(blockhash, flip32, 32); |
|
|
|
|
|
|
|
|
|
|
|
/* Message format: "hash,data" */ |
|
|
|
/* Message format: "data" */ |
|
|
|
sprintf(gbt_block, "%s,", blockhash); |
|
|
|
gbt_block = ckzalloc(1024); |
|
|
|
__bin2hex(gbt_block + 64 + 1, data, 80); |
|
|
|
__bin2hex(gbt_block, data, 80); |
|
|
|
if (txns < 0xfd) { |
|
|
|
if (txns < 0xfd) { |
|
|
|
uint8_t val8 = txns; |
|
|
|
uint8_t val8 = txns; |
|
|
|
|
|
|
|
|
|
|
|