From f6f7f398864e9837fe9c3bdd3e430d2ddb5fb0d2 Mon Sep 17 00:00:00 2001 From: johnny9 <985648+johnny9@users.noreply.github.com> Date: Sat, 27 May 2023 09:47:45 -0400 Subject: [PATCH] chore: remove excess logging --- components/stratum/mining.c | 10 ---------- main/bm1397.c | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/components/stratum/mining.c b/components/stratum/mining.c index dbac5977..ef17afcc 100644 --- a/components/stratum/mining.c +++ b/components/stratum/mining.c @@ -75,10 +75,6 @@ bm_job construct_bm_job(mining_notify * params, const char * merkle_root) { memcpy(midstate_data + 4, new_job.prev_block_hash, 32); //copy prev_block_hash memcpy(midstate_data + 36, new_job.merkle_root, 28); //copy merkle_root - printf("midstate_data: "); - prettyHex(midstate_data, 64); - printf("\n"); - midstate_sha256_bin(midstate_data, 64, new_job.midstate); //make the midstate hash reverse_bytes(new_job.midstate, 32); //reverse the midstate bytes for the BM job packet @@ -118,16 +114,10 @@ double test_nonce_value(bm_job * job, uint32_t nonce) { unsigned char hash_buffer[32]; unsigned char hash_result[32]; - printf("data32: "); - prettyHex(header, 80); - //double hash the header mbedtls_sha256(header, 80, hash_buffer, 0); mbedtls_sha256(hash_buffer, 32, hash_result, 0); - printf("hash: "); - prettyHex(hash_result, 32); - d64 = truediffone; s64 = le256todouble(hash_result); ds = d64 / s64; diff --git a/main/bm1397.c b/main/bm1397.c index 2f653da0..685a5b66 100644 --- a/main/bm1397.c +++ b/main/bm1397.c @@ -202,5 +202,5 @@ void send_init(void) { } void send_work(struct job_packet *job) { - send_BM1397((TYPE_JOB | GROUP_SINGLE | CMD_WRITE), (uint8_t*)job, sizeof(struct job_packet), true); + send_BM1397((TYPE_JOB | GROUP_SINGLE | CMD_WRITE), (uint8_t*)job, sizeof(struct job_packet), false); }