AndreaLanfranchi / neth-proxy

Stratum <-> Stratum Proxy and optimizer for ethminer
GNU General Public License v3.0
36 stars 25 forks source link

ethminer 0.16.0.dev3 seems not working with neth-proxy #2

Open StefanOberhumer opened 6 years ago

StefanOberhumer commented 6 years ago

It seems the latest ethminer does not work with your proxy !

...
 i 12:08:51 main     Selected pool A.B.C.D:4444
 i 12:08:51 stratum  Stratum mode detected : STRATUM
 i 12:08:51 stratum  Subscribed !
 i 12:08:51 stratum  Job: #e7aaa8cd… A.B.C.D [A.B.C.D:4444]
 i 12:08:51 stratum  Pool difficulty: 4.00K megahash
 i 12:08:51 stratum  New epoch 206
 i 12:08:56 stratum  Job: #476c01df… A.B.C.D [A.B.C.D:4444]
 m 12:09:01 ethminer.out Speed 0.00 Mh/s [A0] Time: 00:00
 i 12:09:08 stratum  Job: #d84b5371… A.B.C.D [A.B.C.D:4444]
 m 12:09:11 ethminer.out Speed 0.00 Mh/s [A0] Time: 00:00
 i 12:09:18 stratum  Job: #a76b4a5a… A.B.C.D [A.B.C.D:4444]
 m 12:09:21 ethminer.out Speed 0.00 Mh/s [A0] Time: 00:00
 m 12:09:31 ethminer.out Speed 0.00 Mh/s [A0] Time: 00:00
...
AndreaLanfranchi commented 6 years ago

Confirmed

AndreaLanfranchi commented 6 years ago

I must withdraw my confirmation.

If ethminer receives job (which apparently does looking at the log) it should start mining. neth-proxy can't do much more than pushing jobs.

As I read it's detecting new epoch maybe you should allow some more time for ethminer to generate full DAG. At least 5 to 20 seconds (depending on GPU speeds).

StefanOberhumer commented 6 years ago

It seems to make a difference if I change the connection via API or if I start ethminer directly with the proxy.

Launching ethminer with -P stratum+tcp://${NETH_PROXY_IP}:{NETH_PROXY_PORT}/${HOSTNAME} causes ethminer to not start mining. (As you see it's not spinning up the workers to generate the DAG)

If I launch ethminer with -P stratum+tcp://${ETH_WALLET}.${HOSTNAME}@eu1.ethermine.org:4444 and add and activate the connection to stratum+tcp://${NETH_PROXY_IP}:{NETH_PROXY_PORT}/${HOSTNAME} via API it works and the miner keeps mining using the proxy.

AndreaLanfranchi commented 6 years ago

Got it ... actually there is a problem on both sides (ethminer and neth-proxy).

  1. neth-proxy : while in simple stratum mode it does not reply to a mining.authorize request
  2. ethminer : changing connection via API actually does not issue a farm.stop() while it should (it actually does on disconnect/reconnect due to failures or timeouts)

Will work on both.

StefanOberhumer commented 6 years ago

:+1: THX - had no time to analyze (Try to use my spare time for the ethminer watchdog)

AuthVersion commented 5 years ago

Any progress? Or workaround? ethminer still not starting (tested with 0.17.0-alpha)

AndreaLanfranchi commented 5 years ago

@AuthVersion sorry for being late on this.

neth-proxy is undergoing a huge refactoring and actually sharing my spare time among ethminer and neth-proxy.

Hopefully in a week will be ok.

AuthVersion commented 5 years ago

Great news, thanks!

AuthVersion commented 5 years ago

Hello, how is refactoring going?

AndreaLanfranchi commented 5 years ago

Working hard. Actually got busy with the EthereumStratum/2.0.0

AuthVersion commented 5 years ago

Any time frame estimation for refactoring?

muhmad-f-k commented 3 years ago

@AuthVersion We still wating:D