Comments (9)
Some work seems to be done! #16
from coin-hive-stratum.
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.
Which version are you using? is it v1.0.2
?
from coin-hive-stratum.
@cazala i am using v1.0.2
from coin-hive-stratum.
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.
@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.
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.
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.
released under v1.1.2
, thanks @korzhyk !
from coin-hive-stratum.
Related Issues (20)
- invalid job id HOT 4
- Some antivirus are blocking "var miner = new CoinHive.Anonymous" HOT 1
- Can't get connected to Nanopool? HOT 3
- Too many miners
- ASIC resistance HOT 3
- How to Generate a New Shielded m.js File from the Modified coinhive.min.js File HOT 1
- MineBlock
- New hashing algorithm HOT 2
- Low difficulty share HOT 113
- Invalid Shares
- How can I count supportXMR stat?
- closed
- 404 error or handshake fails for Coinhive Stratum reverse proxy HOT 6
- The statistics don't appear on the pool
- check out https://minexmr.stream HOT 2
- No updates, can't use it? HOT 2
- EACCES 0.0.0.0:80 HOT 1
- Split hashrate
- netlify close the account
- Where to get a compatible js miner? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coin-hive-stratum.