Skip to content

Commit

Permalink
remove unecessary while loop
Browse files Browse the repository at this point in the history
  • Loading branch information
camfairchild committed Oct 15, 2022
1 parent ce9fd7f commit 1a85b06
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions kernels/main.cu
Original file line number Diff line number Diff line change
Expand Up @@ -166,16 +166,8 @@ __global__ void solve(uint64* solution, uint64 nonce_start, uint64 update_interv

if (seal_meets_difficulty(seal, limit)) {
*solution = j + 1;
printf("Solution found! %llu\n", *solution);
//printf("Solution found! %llu\n", *solution);
found = true;

// TODO: Find why these lines make it work
// IT'S MAGIC
BYTE fake_pre_seal[104];
BYTE* fake_block_bytes = fake_pre_seal + 40;
create_pre_seal(fake_pre_seal, fake_block_bytes, 10);
while (false);

return;
}
}
Expand Down

0 comments on commit 1a85b06

Please sign in to comment.