Stratehm / stratum-proxy

Java implementation of a stratum->stratum/HTTPGetwork proxy with a Web GUI and some pool switching strategies (PriorityFailover, WeightedRoundRobin). Simple to install and configure.
GNU General Public License v3.0
200 stars 117 forks source link

Support NiceHash Dagger-Hashimotot (eth) Stratumn #72

Closed coolinger closed 7 years ago

coolinger commented 8 years ago

Connect fails, can this also be supported?

Log and config following.

Regards

2016-07-16 23:12:31,345 TRACE    [TimerSchedulerThread]:strat.mining.stratum.proxy.utils.Timer$Scheduler - Looking for next task to execute: [Task [isCancelled=false, expectedExecutionTime=1468703551344, name=ReconnectTask-NiceHash], Task [isCancelled=false, expectedExecutionTime=1468703578807, name=HashrateRecoderTask]]
2016-07-16 23:12:31,416 TRACE    [TimerSchedulerThread]:strat.mining.stratum.proxy.utils.Timer$Scheduler - Task to execute now: ReconnectTask-NiceHash.
2016-07-16 23:12:31,417 DEBUG    [TimerExecutorThread-0]:strat.mining.stratum.proxy.pool.Pool - Starting pool NiceHash...
2016-07-16 23:12:31,430 DEBUG    [Pool-NiceHash-Thread]:strat.mining.stratum.proxy.network.StratumConnection$1 - Start reading on connection Pool-NiceHash.
2016-07-16 23:12:31,433 TRACE    [TimerExecutorThread-0]:strat.mining.stratum.proxy.utils.Timer - Task SubscribeTimeoutTask-NiceHash added in queue => Waking up the scheduler. [Task [isCancelled=false, expectedExecutionTime=1468703556433, name=SubscribeTimeoutTask-NiceHash], Task [isCancelled=false, expectedExecutionTime=1468703578807, name=HashrateRecoderTask]]
2016-07-16 23:12:31,435 DEBUG    [TimerExecutorThread-0]:strat.mining.stratum.proxy.network.StratumConnection - Pool-NiceHash. Send request: {"id": 15, "method": "mining.subscribe", "params": ["stratehm-stratum-proxy-0.8.1-SNAPSHOT"]}
2016-07-16 23:12:31,467 ERROR    [Pool-NiceHash-Thread]:strat.mining.stratum.proxy.pool.Pool - Disconnection of pool Pool [name=NiceHash, host=daggerhashimoto.eu.nicehash.com:3353, username=<BTC>, password=x, readySince=null, isReady=false, isEnabled=true, isStable=false, priority=0, weight=8].
2016-07-16 23:12:31,468 DEBUG    [Pool-NiceHash-Thread]:strat.mining.stratum.proxy.pool.Pool - Stopping pool NiceHash...
2016-07-16 23:12:31,469 TRACE    [TimerSchedulerThread]:strat.mining.stratum.proxy.utils.Timer$Scheduler - Looking for next task to execute: [Task [isCancelled=false, expectedExecutionTime=1468703556469, name=ReconnectTask-NiceHash], Task [isCancelled=false, expectedExecutionTime=1468703578807, name=HashrateRecoderTask]]
2016-07-16 23:12:31,470 TRACE    [TimerSchedulerThread]:strat.mining.stratum.proxy.utils.Timer$Scheduler - Next task to execute ReconnectTask-NiceHash: waiting for 5000 ms.
{
  "logDirectory" : "log.eth",
  "logLevel" : "WARN",
  "disableLogAppend": false,
  "stratumListenPort" : 3353,
  "stratumListenAddress" : "0.0.0.0",
  "disableStratum": false,
  "getworkListenPort" : 8353,
  "getworkListenAddress" : "0.0.0.0",
  "disableGetwork": true,
  "apiListenPort" : 8895,
  "apiListenAddress" : "127.0.0.1",
  "disableApi": false,
  "poolConnectionRetryDelay" : 5,
  "poolReconnectStabilityPeriod" : 5,
  "poolNoNotifyTimeout" : 240,
  "rejectReconnectOnDifferentHost" : false,
  "poolHashrateSamplingPeriod" : 600,
  "userHashrateSamplingPeriod" : 600,
  "connectionHashrateSamplingPeriod" : 600,
  "isScrypt" : false,
  "databaseDirectory": "database.eth",
  "hashrateDatabaseSamplingPeriod": 60,
  "hashrateDatabaseHistoryDepth": 7,
  "noMidstate": false,
  "apiLogLevel": "INFO",
  "validateGetworkShares": false, // Validate the shares submitted by Getwork workers before submitting the shares to the pool. Only works for SHA256 and Scrypt.
  "poolSwitchingStrategy": "priorityFailover",
  "weightedRoundRobinRoundDuration": 60,
  "apiUser": "",
  "apiPassword": "",
  "apiReadOnlyAccessEnabled": false, // If an apiUser is set and this option is true, the read-only API methods are publicly accessible. The displayed GUI will be read-only and login will be required to access to admin features (modify/create/delete pools, ban users...)
  // The apiEnableSsl should be set to true or left commented if an apiUser is specified. If the apiEnableSsl option is not set, ssl is enabled when apiUser is set else it is disabled.
  //"apiEnableSsl": false,
  "logRealShareDifficulty": false, // Take care, it is CPU intensive and it works only for SHA256 and Scrypt coins.
  "workerNumberLimit": 256, // Only 1, 256 and 65536 values are supported.
  "ipVersion": "auto", // Valid values: auto, v4, v6. Force the use of the IP protocol version.
  "suggestedPoolDifficulty": 0.01, // Suggest this difficulty to the pool. The pool may ignore the suggested difficulty. (if not compatible or for any other reasons)
  "pools" : [ {
    "name" : "NiceHash",
    "host" : "daggerhashimoto.eu.nicehash.com:3353",
    "user" : "<BTC>",
    "password" : "x",
    "enableExtranonceSubscribe" : true,
    "appendWorkerNames" : false,
    "workerNameSeparator" : "_",
    "useWorkerPassword" : false,
    "weight" : 8,
    "isEnabled": true
} ]
}
Stratehm commented 7 years ago

Ethereum is not supported by this proxy.

bmatthewshea commented 5 years ago

@Stratehm : Gee thanks. Wasted my time here. Why is documentation so difficult? Maybe mention that in the VERY FIRST SENTENCE on your README. or TITLE? :

Java implementation of a stratum->stratum/HTTPGetwork proxy with a Web GUI and some pool switching strategies (PriorityFailover, WeightedRoundRobin). Simple to install and configure.

I see zero about what it supports or doesn't support..