forked from Ocean/datum_gateway
conf: Refuse to start with pooled mining only, if there's no pool set
This commit is contained in:
parent
7be012af2e
commit
2a5cf535c0
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user