chore: remove excess logging

This commit is contained in:
johnny9 2023-05-27 09:47:45 -04:00
parent 474f98d070
commit f6f7f39886
2 changed files with 1 additions and 11 deletions

View File

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

View File

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