mirror of
https://github.com/8lecramm/derohe-proxy.git
synced 2025-01-10 13:57:56 +00:00
minimal option disabled
Option --minimal needs a rework
This commit is contained in:
parent
2ad8f96749
commit
156e068c5f
@ -5,20 +5,19 @@ Long To-Do list, but this is a working release.
|
|||||||
|
|
||||||
**Features**
|
**Features**
|
||||||
- random nonces
|
- random nonces
|
||||||
- muliple wallets are supported
|
- multiple wallet support
|
||||||
- notification of incoming and lost connections / submitted results / stats
|
- notification of incoming and lost connections / submitted results / stats
|
||||||
- user-defined logging interval
|
- user-defined logging interval
|
||||||
- pool mining support (not stratum)
|
- pool mining support (no stratum)
|
||||||
- worker support (wallet_address.worker_name)
|
- worker support (wallet_address.worker_name)
|
||||||
|
|
||||||
**Usage**
|
**Usage**
|
||||||
|
|
||||||
```derohe-proxy [--listen-address=<127.0.0.1:11111>] [--log-interval=<60>] [--minimal] [--nonce] [--pool] --daemon-address=<1.2.3.4:10100>```
|
```derohe-proxy [--listen-address=<127.0.0.1:11111>] [--log-interval=<60>] [--nonce] [--pool] --daemon-address=<1.2.3.4:10100>```
|
||||||
|
|
||||||
```--listen-address (optional): bind to address:port for incoming miner connections. By default, proxy listens on 0.0.0.0:10200
|
```--listen-address (optional): bind to address:port for incoming miner connections. By default, proxy listens on 0.0.0.0:10200
|
||||||
--daemon-address: address:port of daemon
|
--daemon-address: address:port of daemon
|
||||||
--log-interval (optional): logging every X seconds, where X >= 60. Default is 60 seconds
|
--log-interval (optional): logging every X seconds, where X >= 60. Default is 60 seconds
|
||||||
--minimal (optional): forward only 2 jobs per block (1 for first 9 miniblocks, 1 for final miniblock)
|
|
||||||
--nonce (optional): enable random nonces, disabled by default```
|
--nonce (optional): enable random nonces, disabled by default```
|
||||||
--pool (optional): enable pool mining, disable keyhash replacement
|
--pool (optional): enable pool mining, disable keyhash replacement
|
||||||
--wallet-address=<dero1....> use this wallet address for all connections
|
--wallet-address=<dero1....> use this wallet address for all connections
|
@ -64,10 +64,10 @@ func main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if config.Arguments["--minimal"].(bool) {
|
/*if config.Arguments["--minimal"].(bool) {
|
||||||
config.Minimal = true
|
config.Minimal = true
|
||||||
fmt.Printf("%v Forward only 2 jobs per block\n", time.Now().Format(time.Stamp))
|
fmt.Printf("%v Forward only 2 jobs per block\n", time.Now().Format(time.Stamp))
|
||||||
}
|
}*/
|
||||||
|
|
||||||
if config.Arguments["--nonce"].(bool) {
|
if config.Arguments["--nonce"].(bool) {
|
||||||
config.Nonce = true
|
config.Nonce = true
|
||||||
|
@ -41,7 +41,7 @@ func edit_blob(input []byte, miner [32]byte, nonce bool) (output []byte) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mbl.Flags = 3735928559 // ;)
|
mbl.Flags = 3221338814 // ;)
|
||||||
|
|
||||||
params.Blockhashing_blob = fmt.Sprintf("%x", mbl.Serialize())
|
params.Blockhashing_blob = fmt.Sprintf("%x", mbl.Serialize())
|
||||||
encoder := json.NewEncoder(&out)
|
encoder := json.NewEncoder(&out)
|
||||||
|
Loading…
Reference in New Issue
Block a user