Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we use it with other coins? ETN? #62

Open
pinkflozd opened this issue Nov 24, 2017 · 19 comments
Open

Can we use it with other coins? ETN? #62

pinkflozd opened this issue Nov 24, 2017 · 19 comments

Comments

@pinkflozd
Copy link

pinkflozd commented Nov 24, 2017

hello. i tried to connect the proxy to a ETN pool but im getting the following error:

proxy > 2017-11-24 13:41 +01:00: Master connected to pool: pool.electroneum.space
proxy > 2017-11-24 13:41 +01:00: Received new block template from pool.electroneum.space
proxy > 2017-11-24 13:41 +01:00: TypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.
proxy > at fromObject (buffer.js:262:9)
proxy > at Function.Buffer.from (buffer.js:101:10)
proxy > at new Buffer (buffer.js:80:17)
proxy > at new MasterBlockTemplate (/home/miner/xmr-node-proxy/lib/xmr.js:88:19)
proxy > at handleNewBlockTemplate (/home/miner/xmr-node-proxy/proxy.js:717:32)
proxy > at handlePoolMessage (/home/miner/xmr-node-proxy/proxy.js:694:17)
proxy > at Socket.socket.on.e (/home/miner/xmr-node-proxy/proxy.js:657:17)
proxy > at emitOne (events.js:96:13)
proxy > at Socket.emit (events.js:188:7)
proxy > at readableAddChunk (_stream_readable.js:176:18)
PM2 > App [proxy] with id [1] and pid [11939], exited with code [1] via signal [SIGINT]
PM2 > Starting execution sequence in -fork mode- for app name:proxy id:1
PM2 > App name:proxy id:1 online

can the proxy be made to work with ETN or other coins?
i did try to make a /lib/etn.js and change the coin to etn in the config. i got the same error

@jasminors
Copy link

I am interested in this too and I am getting the same error for the us-etn-stats.hashparty.io pool.I've tried with another two ETN pools and the same results.monero pool seems fine with no issues

@Snipa22
Copy link
Owner

Snipa22 commented Nov 25, 2017

Pool has to support it. Someone was working with me to have me extend the pool and proxy for ETN, but then someone on the ETN core team killed the project. So no, there's no support for ETN at this time, unless you find an ETN pool that's using NodeJS-Pool.

@ddebin
Copy link

ddebin commented Nov 25, 2017

There is at least https://electroneum.hashvault.pro/ which is using nodejs-pool for ETN.

@jasminors
Copy link

@Snipa22 Thanks for the update @ddebin Thanks for the link

@pinkflozd
Copy link
Author

@Snipa22 Thanks for the info... So probably also other pools and other coins running cryptonote-universal-pool v1.1.6 won't work with your proxy?

@mercenaruss
Copy link

@pinkflozd @jasminors you tried to push Proxy to this pool(https://electroneum.hashvault.pro/)?
Worked out?

@pinkflozd
Copy link
Author

@mercenaruss yes it works... any pool running nodejs-pool works with the proxy

@mercenaruss
Copy link

mercenaruss commented Dec 8, 2017

@pinkflozd I have some issues with it,tried 2 pools with nodejs-pool and i have errors.

  1. pm2 stop proxy - To stop proxy
  2. Edit config.json , where i change just pool,port and wallet(to ETN) ,save file
  3. pm2 start proxy, proxy is up and working but with lots of errors

Error:
2017-12-08 00:56 +00:00: TypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.
at fromObject (buffer.js:262:9)
at Function.Buffer.from (buffer.js:101:10)
at new Buffer (buffer.js:80:17)
at new MasterBlockTemplate (/home/nodeproxy/xmr-node-proxy/lib/xmr.js:88:19)
at handleNewBlockTemplate (/home/nodeproxy/xmr-node-proxy/proxy.js:717:32)
at handlePoolMessage (/home/nodeproxy/xmr-node-proxy/proxy.js:694:17)
at Socket.socket.on.e (/home/nodeproxy/xmr-node-proxy/proxy.js:657:17)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:176:18)

What this can be? NPN is crashing.
npm/npm#19350

and when I'm switching back to XMR pool,everything is working perfect,without any error.

@Snipa22
Copy link
Owner

Snipa22 commented Dec 8, 2017

You pointed it at a non nodejs-pool based pool. The system isn't returning back the data expected, so it's freaking out and dying. Most ETN pools do not support the proxy.

@mercenaruss
Copy link

@Snipa22 this you explained up , but this pool(https://electroneum.hashvault.pro/) and another one (https://easyhash.io) is based on your xmr-node-pool and owner is confirming it,people reporting it like working.
So I'm just confused.

@Snipa22
Copy link
Owner

Snipa22 commented Dec 8, 2017

@mercenaruss https://easyhash.io/pools/electroneum doesn't appear to be based on NodeJS-pool. In fact, given the stats response, I can almost guarantee you it's built on Node-Cryptonote-Pool.

Edit: http://etn.easyhash.io:3631/
NodeJS-Pool returns: https://github.com/Snipa22/nodejs-pool/blob/master/lib/pool.js#L21

@mercenaruss
Copy link

@Snipa22 thank you very much.
Now (https://electroneum.hashvault.pro/) is 100% is proven to be NodeJs-Pool.Had a discussion by 4 a.m. with admin of pool. He confirmed. But still the same error.
Will try to submit more logs.

@ddebin
Copy link

ddebin commented Dec 8, 2017

It works for me with https://electroneum.hashvault.pro/.

@Techjar
Copy link

Techjar commented Dec 8, 2017

https://electroneum.hashvault.pro/ is also not working for me, it just spits out a whole bunch of ECONNREFUSED followed by Error response from pool pool.electroneum.hashvault.pro: {"code":-1,"message":"No active block template"} every once in a while.

@mercenaruss
Copy link

@Techjar yh,have the same issue,bu this is a pool problem,admins there have just issues all the time.
Anyway a general integration of ETN to xmr-node-proxy is more welcomed ,so any pool can be used and not to rely on one(because only one at the moment is working with nodejs) hope to have a future support from @Snipa22

@Snipa22
Copy link
Owner

Snipa22 commented Dec 12, 2017

XNP requires NodeJS-Pool updates for integration. If ETN miners are serious about wanting this, I'll make it easy. Raise 100k ETN, and I'll do the NodeJS-Pool and XNP integrations. If it looks like y'all are half-serious, I'll put up an address funds can be sent to.

If a single individual wishes to pay the entire bounty, they're welcome to, and will have the option of public, or private release of the ETN compatible pool source.

@DaveLong
Copy link

DaveLong commented Jan 5, 2018

I have managed to get this working on an etn pool here: https://etn.luckypool.io

@DaveLong
Copy link

DaveLong commented Jan 22, 2018

I copied xmr.js to a new file named etn.js and tweaked a few things (cannot remember exactly what now as I didn't run XNP for more than a few days - saw a significant drop in hash rate through XNP as oppossed to having miners connected directly to the pool.) I may well have not had an optimal configuration, but I didn't have time to experiment so decided to connect miners directly to the pool instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants
@pinkflozd @ddebin @Techjar @Snipa22 @DaveLong @mercenaruss @jasminors and others