Open garrylachman opened 2 years ago
Add a verify button in Advance Mode configurations
Execute dry run command that verify the config and exit. ./xmrig --dry-run -c config.json --no-color | grep -v "no valid configuration" | grep -v "unable to open" We use inverted grep to filter out the warnings: unable to open "/Users/garrylachman/.xmrig.json". unable to open "/Users/garrylachman/.config/xmrig.json". no valid configuration found, try https://xmrig.com/wizard
Execute dry run command that verify the config and exit.
./xmrig --dry-run -c config.json --no-color | grep -v "no valid configuration" | grep -v "unable to open"
We use inverted grep to filter out the warnings:
unable to open "/Users/garrylachman/.xmrig.json".
unable to open "/Users/garrylachman/.config/xmrig.json".
no valid configuration found, try https://xmrig.com/wizard
* ABOUT XMRig/6.14.1 clang/12.0.5 * LIBS libuv/1.41.0 OpenSSL/1.1.1k hwloc/2.4.1 * HUGE PAGES unavailable * 1GB PAGES unavailable * CPU Apple M1 (1) 64-bit AES L2:16.0 MB L3:0.0 MB 8C/8T NUMA:1 * MEMORY 15.9/16.0 GB (99%) * DONATE 1% * POOL #1 donate.v2.xmrig.com algo auto * COMMANDS 'h' hashrate, 'p' pause, 'r' resume, 's' results, 'c' connection [2021-12-15 16:50:54.851] config OK
[2021-12-15 16:40:44.772] "autosave": false [2021-12-15 16:40:44.772] "background": false, [2021-12-15 16:40:44.772] ^ [2021-12-15 16:40:44.772] /Users/garrylachman/Downloads/xmrig-6.14.1/config.json<line:14, position:5>: "Missing a comma or '}' after an object member."
/cib
Branch issue-8-Config_JSON_Verify created!
Branch already exists
Add a verify button in Advance Mode configurations
Command
Config OK
JSON Typo Error