Skip to content

Commit a2b8301

Browse files
committed
stratum: prevent notify debuglog on normal blocks
1 parent 6e24521 commit a2b8301

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

stratum/client.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ bool client_update_block(YAAMP_CLIENT *client, json_value *json_params)
308308
if (g_debuglog_client) {
309309
debuglog("notify: new %s block %s\n", coind->symbol, hash);
310310
}
311-
311+
312312
snprintf(coind->lastnotifyhash, 161, "%s", hash);
313313

314314
coind->newblock = true;
@@ -318,10 +318,7 @@ bool client_update_block(YAAMP_CLIENT *client, json_value *json_params)
318318
usleep(300*YAAMP_MS);
319319
}
320320

321-
bool confirmed = block_confirm(coind->id, hash);
322-
if (!confirmed) {
323-
debuglog("notify: unable to confirm %s block %s\n", coind->symbol, hash);
324-
}
321+
block_confirm(coind->id, hash);
325322

326323
coind_create_job(coind);
327324
object_unlock(coind);

0 commit comments

Comments
 (0)