xmr-node-proxy icon indicating copy to clipboard operation
xmr-node-proxy copied to clipboard

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

Open z1n opened this issue 6 years ago • 3 comments

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)

z1n avatar Apr 26 '18 02:04 z1n

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 ...)

bobbieltd avatar Apr 26 '18 11:04 bobbieltd

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

appkoders avatar May 01 '18 14:05 appkoders

@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 ?

bobbieltd avatar May 01 '18 16:05 bobbieltd