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 xmr-node-proxy be one miner of xmr-node-proxy? #138

Open
z1n opened this issue Apr 26, 2018 · 3 comments
Open

Can xmr-node-proxy be one miner of xmr-node-proxy? #138

z1n opened this issue Apr 26, 2018 · 3 comments

Comments

@z1n
Copy link

z1n commented Apr 26, 2018

As the title, I tried but it seems that there is a problem to phrase the block.

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

@bobbieltd
Copy link

bobbieltd commented Apr 26, 2018

It looks quite the same issue on my repo. You connect proxy to non nodejs-pool. XNP proxy only works with nodejs-pool (check the footer of pool website if there is powered by nodejs-pool ...)

@appkoders
Copy link

It only works on nodejs-pool since the pool sends a different data(job) if the miner that connects to it is using the user agent xmr-node-proxy.

https://github.com/Snipa22/nodejs-pool/blob/4853b1b98338c2f5a1934fab5c446f38777e1318/lib/pool.js#L225

@bobbieltd
Copy link

@appkoders Thanks for your info. I like your explanation.
@z1n So the proxy need to be modified. What is the use case of multiple level proxy over proxy ?

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

3 participants