Browse Source

Remove blockhash from submit_block message to generator.

master
Con Kolivas 8 years ago
parent
commit
58711dd729
  1. 2
      src/generator.c
  2. 7
      src/stratifier.c

2
src/generator.c

@ -327,7 +327,7 @@ bool generator_submitblock(ckpool_t *ckp, char *buf)
} }
cs = &si->cs; cs = &si->cs;
LOGNOTICE("Submitting block data!"); 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) bool generator_get_blockhash(ckpool_t *ckp, int height, char *hash)

7
src/stratifier.c

@ -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;

Loading…
Cancel
Save