Skip to content

Commit

Permalink
Fix benchmaring without pool address.
Browse files Browse the repository at this point in the history
  • Loading branch information
michal-zurkowski committed Jun 17, 2021
1 parent 3a42e0b commit c242efc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpu-miner.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ bool opt_tune = true;
uint8_t cn_tune[20][6];
bool opt_tune_simple = false;
bool opt_tune_full = false;
char* opt_tuneconfig_file = NULL;
char *opt_tuneconfig_file = NULL;

// pk_buffer_size is used as a version selector by b58 code, therefore
// it must be ret correctly to work.
Expand Down Expand Up @@ -4132,7 +4132,7 @@ int main(int argc, char *argv[]) {

// Check if characters in the worker name are in the allowed group
// for the r-pool and p2pool.
if (opt_algo == ALGO_GR) {
if (opt_algo == ALGO_GR && rpc_url != NULL) {
char *rp_charset = "!@#$%^&*.,[]()";
int rp_ret = pool_worker_check("r-pool", rp_charset, strlen(rp_charset));

Expand Down

0 comments on commit c242efc

Please sign in to comment.