Updated default config example.

This commit is contained in:
XMRig 2019-07-20 05:57:58 +07:00
parent 71300fa852
commit 3d7598b28d
2 changed files with 18 additions and 38 deletions

View file

@ -1,9 +1,14 @@
{ {
"algo": "cryptonight",
"api": { "api": {
"id": null, "id": null,
"worker-id": null "worker-id": null
}, },
"autosave": true,
"background": false,
"colors": true,
"cpu": null,
"donate-level": 5,
"donate-over-proxy": 1,
"http": { "http": {
"enabled": false, "enabled": false,
"host": "127.0.0.1", "host": "127.0.0.1",
@ -11,41 +16,26 @@
"access-token": null, "access-token": null,
"restricted": true "restricted": true
}, },
"asm": true,
"autosave": true,
"av": 0,
"background": false,
"colors": true,
"cpu-affinity": null,
"cpu-priority": null,
"donate-level": 5,
"donate-over-proxy": 1,
"huge-pages": true,
"hw-aes": null,
"log-file": null, "log-file": null,
"max-cpu-usage": 100,
"pools": [ "pools": [
{ {
"algo": null,
"url": "donate.v2.xmrig.com:3333", "url": "donate.v2.xmrig.com:3333",
"user": "YOUR_WALLET_ADDRESS", "user": "YOUR_WALLET_ADDRESS",
"pass": "x", "pass": "x",
"rig-id": null, "rig-id": null,
"nicehash": false, "nicehash": false,
"keepalive": false, "keepalive": false,
"variant": -1,
"enabled": true, "enabled": true,
"tls": false, "tls": false,
"tls-fingerprint": null, "tls-fingerprint": null,
"daemon": false, "daemon": false
"daemon-poll-interval": 1000
} }
], ],
"print-time": 60, "print-time": 60,
"retries": 5, "retries": 5,
"retry-pause": 5, "retry-pause": 5,
"safe": false,
"threads": null,
"user-agent": null,
"syslog": false, "syslog": false,
"user-agent": null,
"watch": true "watch": true
} }

View file

@ -33,11 +33,16 @@ namespace xmrig {
const static char *default_config = const static char *default_config =
R"===( R"===(
{ {
"algo": "cryptonight",
"api": { "api": {
"id": null, "id": null,
"worker-id": null "worker-id": null
}, },
"autosave": true,
"background": false,
"colors": true,
"cpu": null,
"donate-level": 5,
"donate-over-proxy": 1,
"http": { "http": {
"enabled": false, "enabled": false,
"host": "127.0.0.1", "host": "127.0.0.1",
@ -45,42 +50,27 @@ R"===(
"access-token": null, "access-token": null,
"restricted": true "restricted": true
}, },
"asm": true,
"autosave": true,
"av": 0,
"background": false,
"colors": true,
"cpu-affinity": null,
"cpu-priority": null,
"donate-level": 5,
"donate-over-proxy": 1,
"huge-pages": true,
"hw-aes": null,
"log-file": null, "log-file": null,
"max-cpu-usage": 100,
"pools": [ "pools": [
{ {
"algo": null,
"url": "donate.v2.xmrig.com:3333", "url": "donate.v2.xmrig.com:3333",
"user": "YOUR_WALLET_ADDRESS", "user": "YOUR_WALLET_ADDRESS",
"pass": "x", "pass": "x",
"rig-id": null, "rig-id": null,
"nicehash": false, "nicehash": false,
"keepalive": false, "keepalive": false,
"variant": -1,
"enabled": true, "enabled": true,
"tls": false, "tls": false,
"tls-fingerprint": null, "tls-fingerprint": null,
"daemon": false, "daemon": false
"daemon-poll-interval": 1000
} }
], ],
"print-time": 60, "print-time": 60,
"retries": 5, "retries": 5,
"retry-pause": 5, "retry-pause": 5,
"safe": false,
"threads": null,
"user-agent": null,
"syslog": false, "syslog": false,
"user-agent": null,
"watch": true "watch": true
} }
)==="; )===";