Browse Source

ckdb - add a UTC timestamp to the end of the New block message

master
kanoi 10 years ago
parent
commit
86c902b2f8
  1. 5
      src/ckdb.c

5
src/ckdb.c

@ -4789,10 +4789,11 @@ flail:
if (confirmed[0] != BLOCKS_NEW) if (confirmed[0] != BLOCKS_NEW)
tmp[0] = '\0'; tmp[0] = '\0';
else { else {
tv_to_buf(&(DATA_BLOCKS(b_item)->createdate), cd_buf, sizeof(cd_buf));
snprintf(tmp, sizeof(tmp), snprintf(tmp, sizeof(tmp),
" Reward: %f, User: %s, Worker: %s, ShareEst: %.1f", " Reward: %f, User: %s, Worker: %s, ShareEst: %.1f UTC:%s",
BTC_TO_D(DATA_BLOCKS(b_item)->reward), BTC_TO_D(DATA_BLOCKS(b_item)->reward),
username, workername, pool.diffacc); username, workername, pool.diffacc, cd_buf);
if (pool.workinfoid < DATA_BLOCKS(b_item)->workinfoid) { if (pool.workinfoid < DATA_BLOCKS(b_item)->workinfoid) {
pool.workinfoid = DATA_BLOCKS(b_item)->workinfoid; pool.workinfoid = DATA_BLOCKS(b_item)->workinfoid;
pool.diffacc = pool.differr = pool.diffacc = pool.differr =

Loading…
Cancel
Save