2022-10-03 16:35:05 +02:00
|
|
|
package config
|
2022-05-24 18:17:12 +02:00
|
|
|
|
2022-10-03 16:35:05 +02:00
|
|
|
var Command_line string = `derohe-proxy
|
2022-05-24 18:17:12 +02:00
|
|
|
Proxy to combine all miners and to reduce network load
|
|
|
|
|
|
|
|
Usage:
|
2022-11-17 00:54:30 +01:00
|
|
|
derohe-proxy --daemon-address=<1.2.3.4:10100> [--listen-address=<127.0.0.1:10100>] [--log-interval=<60>] [--minimal] [--nonce] [--pool] [--wallet-address=<dero1...>]
|
2022-05-24 18:17:12 +02:00
|
|
|
|
|
|
|
Options:
|
|
|
|
--listen-address=<127.0.0.1:10100> bind to specific address:port, default is 0.0.0.0:10200
|
|
|
|
--daemon-address=<1.2.3.4:10100> connect to this daemon
|
2022-11-17 00:54:30 +01:00
|
|
|
--wallet-address=<dero1....> use this wallet address for all connections
|
2022-05-27 02:16:25 +02:00
|
|
|
--log-interval=<60> set logging interval in seconds (range 60 - 3600), default is 60 seconds
|
2022-06-08 01:03:38 +02:00
|
|
|
--minimal forward only 2 jobs per block (1 for miniblocks and 1 for final miniblock), by default all jobs are forwarded
|
|
|
|
--nonce enable nonce editing, default is off
|
2022-10-03 16:35:05 +02:00
|
|
|
--pool use this option for pool mining; this option avoids changing the keyhash
|
2022-05-24 18:17:12 +02:00
|
|
|
|
|
|
|
Example Mainnet: ./derohe-proxy --daemon-address=minernode1.dero.io:10100
|
|
|
|
`
|
|
|
|
|
|
|
|
// program arguments
|
|
|
|
var Arguments = map[string]interface{}{}
|
|
|
|
|
2022-10-03 16:35:05 +02:00
|
|
|
var Listen_addr string = "0.0.0.0:10200"
|
|
|
|
var Daemon_address string = "minernode1.dero.io:10100"
|
|
|
|
var WalletAddr string = ""
|
2022-05-27 02:16:25 +02:00
|
|
|
|
|
|
|
// logging interval in seconds
|
2022-10-03 16:35:05 +02:00
|
|
|
var Log_intervall int = 60
|
2022-05-28 12:52:52 +02:00
|
|
|
|
|
|
|
// send only 2 jobs per block
|
2022-10-03 16:35:05 +02:00
|
|
|
var Minimal bool = false
|
2022-06-08 01:03:38 +02:00
|
|
|
|
|
|
|
// edit nonce
|
2022-10-03 16:35:05 +02:00
|
|
|
var Nonce bool = false
|
|
|
|
|
|
|
|
// pool mining
|
|
|
|
var Pool_mode bool = false
|