Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a datum_conf.c check for no pool, but mining only #45

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading