diff --git a/src/generator.c b/src/generator.c index fccc5f0d..5f193306 100644 --- a/src/generator.c +++ b/src/generator.c @@ -327,7 +327,7 @@ bool generator_submitblock(ckpool_t *ckp, char *buf) } cs = &si->cs; LOGNOTICE("Submitting block data!"); - return submit_block(cs, buf + 64 + 1); + return submit_block(cs, buf); } bool generator_get_blockhash(ckpool_t *ckp, int height, char *hash) diff --git a/src/stratifier.c b/src/stratifier.c index 3777dfcc..18c8c23c 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -2054,13 +2054,12 @@ process_block(ckpool_t *ckp, const workbase_t *wb, const char *coinbase, const i char hexcoinbase[1024]; bool ret; - gbt_block = ckalloc(1024); flip_32(flip32, hash); __bin2hex(blockhash, flip32, 32); - /* Message format: "hash,data" */ - sprintf(gbt_block, "%s,", blockhash); - __bin2hex(gbt_block + 64 + 1, data, 80); + /* Message format: "data" */ + gbt_block = ckzalloc(1024); + __bin2hex(gbt_block, data, 80); if (txns < 0xfd) { uint8_t val8 = txns;