mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-09 13:34:18 +00:00
![Noel Maersk](/assets/img/avatar_default.png)
The config parser has a bug, and can only set boolean options to non-default state. If a default state is given to an OPT_WITHOUT_ARG option (as defined in the config table), it is set to the non-default state anyway, because a CCAN function opt_set_[inv]bool() is used, which is not meant for this. Therefore, using such options from the command line is fine, but specifying them in the .conf file results in above-described behaviour. E.g., a user tests "api-listen" : true in the config, but changes it later to "api-listen" : false The option will be set true anyway. A previous commit (8dd1c2d4aff5e40e4a87f59fa09f8de3f2232fc1) has allowed this, whereas previously only setting to true was allowed. Currently boolead options that default to true and can be set false by the user are explicitly defined as true, e.g.: bool opt_restart = true; There is no simple or right way around this. This is an issue with the design.
69 lines
1.2 KiB
Plaintext
69 lines
1.2 KiB
Plaintext
{
|
|
"pools" : [
|
|
{
|
|
"poolname" : "Preferred Pool",
|
|
"url" : "http://url1:8332",
|
|
"user" : "user1",
|
|
"pass" : "pass1"
|
|
},
|
|
{
|
|
"poolname" : "Failover Pool",
|
|
"url" : "http://url2:8344",
|
|
"user" : "user2",
|
|
"pass" : "pass2",
|
|
"state" : "enabled"
|
|
},
|
|
{
|
|
"poolname" : "Failover Pool",
|
|
"url" : "http://url3:8344",
|
|
"user" : "user3",
|
|
"pass" : "pass3",
|
|
"state" : "disabled"
|
|
},
|
|
{
|
|
"poolname" : "Testing Pool",
|
|
"url" : "http://url4:8332",
|
|
"user" : "user4",
|
|
"pass" : "pass4",
|
|
"state" : "hidden"
|
|
}
|
|
],
|
|
|
|
"failover-only" : true,
|
|
"failover-switch-delay" : "60",
|
|
"no-pool-disable" : true,
|
|
|
|
"kernel-path" : "/usr/local/bin",
|
|
"kernel" : "alexkarold,ckolivas,zuikkis",
|
|
|
|
"intensity" : "d,9,9,9",
|
|
"xintensity" : "0,0,0",
|
|
"rawintensity" : "0,0,0",
|
|
"lookup-gap" : "2,2,2",
|
|
|
|
"thread-concurrency" : "15508,15508,15508",
|
|
"shaders" : "0,0,0",
|
|
|
|
"gpu-threads" : "2",
|
|
"gpu-engine" : "0-985,0-950,0-960,0-1000",
|
|
"gpu-memclock" : "860,825,835,875",
|
|
"gpu-powertune" : "20,20,20,20",
|
|
|
|
"gpu-vddc" : "0.000,0.000,0.000",
|
|
"gpu-fan" : "0-85,0-85,0-85,0-85",
|
|
|
|
"auto-gpu" : true,
|
|
"auto-fan" : true,
|
|
|
|
"temp-target" : "75,75,75,75",
|
|
"temp-overheat" : "85,85,85,85",
|
|
"temp-cutoff" : "95,95,95,95",
|
|
"temp-hysteresis" : "3",
|
|
|
|
"queue" : "1",
|
|
"scan-time" : "7",
|
|
"expiry" : "28",
|
|
|
|
"log" : "5"
|
|
}
|