Skip to content

Commit

Permalink
1.170603
Browse files Browse the repository at this point in the history
not necessary update:
fixed miner crash if you mining at Ninja-like pool v3 (bug with the v3
code)
  • Loading branch information
Blagodarenko committed Jun 4, 2017
1 parent 0c49167 commit 700407b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
12 changes: 10 additions & 2 deletions miner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -974,8 +974,13 @@ void send_i(void)
}
else //получили ответ пула
{
char *find = strstr(buffer, "\r\n\r\n");
if (find != nullptr) find = find + 4;
char *find = strstr(buffer, "{");
if (find == nullptr)
{
find = strstr(buffer, "\r\n\r\n");
if (find != nullptr) find = find + 4;
else find = buffer;
}

unsigned long long ndeadline;
unsigned long long naccountId = 0;
Expand Down Expand Up @@ -2957,6 +2962,9 @@ int main(int argc, char **argv) {
wprintw(win_main, "Recommended size for this block: %llu Gb\n", (4398046511104 / baseTarget)*1024 / targetDeadlineInfo);
wattroff(win_main, COLOR_PAIR(15));
break;
case 'c':
wprintw(win_main, "*** Chance to find a block: %.5f%% (%llu Gb)\n", ((double)((total_size / 1024 / 1024) * 100 * 60)*(double)baseTarget) / 1152921504606846976, total_size / 1024 / 1024 / 1024, 0);
break;
}
box(win_progress, 0, 0);
bytesRead = 0;
Expand Down
6 changes: 3 additions & 3 deletions miner.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ HANDLE hHeap;

bool exit_flag = false;
#ifdef __AVX2__
char const *const version = "v1.170601_AVX2";
char const *const version = "v1.170603_AVX2";
#else
#ifdef __AVX__
char const *const version = "v1.170601_AVX";
char const *const version = "v1.170603_AVX";
#else
char const *const version = "v1.170601";
char const *const version = "v1.170603";
#endif
#endif

Expand Down

0 comments on commit 700407b

Please sign in to comment.