Giter Site home page Giter Site logo

Comments (9)

korzhyk avatar korzhyk commented on August 16, 2024 1

Some work seems to be done! #16

from coin-hive-stratum.

mouradski avatar mouradski commented on August 16, 2024

Thanx cazala for your work :)

/usr/lib/node_modules/coin-hive-stratum/node_modules/ws/lib/WebSocket.js:355
else throw new Error('not opened');
^

Error: not opened
at WebSocket.send (/usr/lib/node_modules/coin-hive-stratum/node_modules/ws/lib/WebSocket.js:355:18)
at sendToMiner (/usr/lib/node_modules/coin-hive-stratum/src/proxy.js:105:19)
at Socket. (/usr/lib/node_modules/coin-hive-stratum/src/proxy.js:151:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:176:18)
at Socket.Readable.push (_stream_readable.js:134:10)
at TCP.onread (net.js:547:20)

from coin-hive-stratum.

cazala avatar cazala commented on August 16, 2024

Which version are you using? is it v1.0.2 ?

from coin-hive-stratum.

slayerulan avatar slayerulan commented on August 16, 2024

@cazala i am using v1.0.2

from coin-hive-stratum.

sunk818 avatar sunk818 commented on August 16, 2024

What happens if proxy loses connection with pool? Does proxy reconnect? Can I wrap the program around a script that will restart stratum proxy? What happens when miner is hashing but proxy is down? Does that mean hashes are wasted? If proxy restarts will miner eventually reconnect and submit hashes?

It'd be nice to have a HTML page that has more UI so all these details are shown on the web page. I'm using the miner UI from coinhive which is helpful... but it doesn't show accepted hashes.

I don't know of any pools that reward by hashes submitted... usually it by share difficulty and actual block has to be solved.

from coin-hive-stratum.

cazala avatar cazala commented on August 16, 2024

@sunk818 if the connection to the pool is lost, the ws connection is closed. The miner then tries to reconnect, this creates a new ws connection with it's own tcp connection and everything goes well after that. If the ws connection to the miner is lost, the server destroys that particular connection's tcp socket gracefully and everything goes well. You should run this proxy with forever or a similiar tool to restart it if it dies for some reason tho.

from coin-hive-stratum.

sunk818 avatar sunk818 commented on August 16, 2024

Well Im not concerned with proxy crashing (exiting), more that it is running but in a zombie state. How would one test for this?

from coin-hive-stratum.

cazala avatar cazala commented on August 16, 2024

It won't keep running in a 'zombie' state, it will just exit. I need to catch those exceptions so it doesn't die, but for now you can run it with forever or other watchdog and it should work fine.

from coin-hive-stratum.

cazala avatar cazala commented on August 16, 2024

released under v1.1.2, thanks @korzhyk !

from coin-hive-stratum.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.