Skip to content

Commit

Permalink
Add a datum_conf.c check for no pool, but mining only
Browse files Browse the repository at this point in the history
  • Loading branch information
jesterhodl committed Dec 14, 2024
1 parent 7be012a commit 10460f1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/datum_conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,11 @@ int datum_read_config(const char *conffile) {
return 0;
}

if (datum_config.datum_pool_host[0] == '\0' && datum_config.datum_pooled_mining_only == true) {
DLOG_FATAL("Pooled mining only is set to true, but pool host is not specified.");
return 0;
}

// Save some multiplication later
datum_config.datum_protocol_global_timeout_ms = datum_config.datum_protocol_global_timeout * 1000;

Expand Down

0 comments on commit 10460f1

Please sign in to comment.