Skip to content

Commit

Permalink
Small cosmetic change
Browse files Browse the repository at this point in the history
(cherry picked from commit 8104d33)
  • Loading branch information
KlausT committed Feb 24, 2018
1 parent 5da23f2 commit 2cf05c2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
8 changes: 4 additions & 4 deletions ccminer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ bool opt_debug_threads = false;
bool opt_showdiff = true;
bool opt_hwmonitor = true;

static const char *algo_names[] =
const char *algo_names[] =
{
"invalid",
"bitcoin",
Expand Down Expand Up @@ -2142,9 +2142,9 @@ static void *stratum_thread(void *userdata)
g_work_time = time(NULL);
if(stratum.job.clean)
{
if(!opt_quiet)
applog(LOG_BLUE, "%s %s block %d", short_url, algo_names[opt_algo],
stratum.job.height);
// if(!opt_quiet)
// applog(LOG_BLUE, "%s %s block %d", short_url, algo_names[opt_algo],
// stratum.job.height);
restart_threads();
if(check_dups)
hashlog_purge_old();
Expand Down
7 changes: 6 additions & 1 deletion util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ extern enum sha_algos opt_algo;
extern char curl_err_str[];
extern bool stop_mining;
extern bool send_stale;
extern const char *algo_names[];

bool opt_tracegpu = false;

Expand Down Expand Up @@ -1623,7 +1624,11 @@ static bool stratum_notify(struct stratum_ctx *sctx, json_t *params)
sctx->job.height = getblocheight(sctx);
else
sctx->job.height = 1;

if(!opt_quiet)
{
applog(LOG_BLUE, "Received new %s block header", algo_names[opt_algo]);
applog(LOG_BLUE, "block height %d, %d transactions", sctx->job.height, merkle_count);
}
for(i = 0; i < sctx->job.merkle_count; i++)
free(sctx->job.merkle[i]);
free(sctx->job.merkle);
Expand Down

0 comments on commit 2cf05c2

Please sign in to comment.