Pages:
Author

Topic: [XMR] Monero stratum proxy (open-source) (Read 81800 times)

newbie
Activity: 2
Merit: 0
January 12, 2018, 06:38:20 PM
#47
i wrote my own it works very well!

node.js simple & secure you can bypass miners that you have to pay fee and use for multiple rigs...

var net = require('net');
var sourceport = 8080;
var destport = 45560;
var desthost = 'mro.pool.minergate.com';
var login = '***@gmail.com'; //for minergate your mail for other pools your wallet

net.createServer(function(s)
{
    var buff = "";
    var connected = false;
    var cli = net.createConnection(destport,desthost);
    s.on('data', function(d) {
        if (connected)
        {
           cli.write(d);
        } else {
           buff += d.toString();
        }
    });
   s.on('error', function() {
   //console.log('dile');
    });
    cli.on('connect', function() {
        connected = true;
   if(buff.indexOf('"login": "')>-1)
   {
   try {
   logincik=buff.split('"login": "')[1].split('"')[0];
   buff=buff.replace(logincik,login);
   } catch(e){}
   }
        cli.write(buff);
      //console.log(buff);
    });
    cli.on('error', function() {
   //console.log('wiy');
    });   
    cli.pipe(s);
}).listen(sourceport);



Hello man, how are you?

Well, it's been a while since I've been looking for articles on stratum proxy and I've found your comment on one of the bitcointalk topics.

Could you please help with this question? If you can, send me a message telegram @ecologyc

I'm desperate, I need it a lot, because I have 300 servers in a single datacenter and 60% of that total is being blocked by the pool, because I think they are flooding.

Thanks in advance!
newbie
Activity: 67
Merit: 0
October 29, 2017, 07:17:40 PM
#46
Just tested:
xmr-stak-cpu
xmr-stak-nvidia
on https://xmr.mypool.online
(stratum mine.xmr.mypool.online:3335)

newbie
Activity: 2
Merit: 0
October 17, 2017, 03:54:40 AM
#45
Hi All,
I just set this up and was wondering if there is a way to set the worker ID that I see in the proxy (not in the pool) to be the username sent from the worker (or any other parameter that I can define).
right now I see the worker ID as the IP of the miner and when I have lots of computers from one IP it can be a bit hard to track which is which.

Thanks!
full member
Activity: 254
Merit: 121
October 06, 2017, 04:12:46 PM
#44
Help me, please..
How make logging so...
Code:
2017-09-12 09:32:23,663 INFO proxy # [16ms] Share from 'RIG_NAME' accepted

There is no code to do that. Configuration won't help here anyhow.

Pleas help me because I setup worker ID and worker id from IP but in the pool statistic show random number. Please help me to configure properly for worker ID and worker ID from IP.

Thanks!

That is exactly how it is intended to be. It is not a random value, it is an ipv4 address represented as a number.
newbie
Activity: 1
Merit: 0
September 16, 2017, 10:40:23 PM
#43
Pleas help me because I setup worker ID and worker id from IP but in the pool statistic show random number. Please help me to configure properly for worker ID and worker ID from IP.

Thanks!
hero member
Activity: 826
Merit: 1000
September 12, 2017, 02:57:13 AM
#42
hi right now i am using https://github.com/zone117x/node-cryptonote-pool for our pool an want to allow support mine direct to exchange and also able to add rig name or worker name ..is there any way possible to implement i this pool script so that it will work with all supported function mention
jr. member
Activity: 125
Merit: 2
September 12, 2017, 02:42:31 AM
#41
Help me, please..

Now the XMR-PROXY writes in the log:

Code:
2017-09-12 09:32:23,663 INFO proxy # [16ms] Share from '178.120.6.185' accepted

How make logging so...

Code:
2017-09-12 09:32:23,663 INFO proxy # [16ms] Share from 'RIG_NAME' accepted


Config.py
Code:
STRATUM_HOST = "88.xxx.xxx.5"
STRATUM_PORT = 8025

WALLET = '4JUdGzvrMFxxxxxxxxxxxxrw5vtGpKB'
PAYMENT_ID = ''

ENABLE_WORKER_ID = True
WORKER_ID_FROM_IP = True

MONITORING = True
MONITORING_EMAIL = ''

POOL_HOST = 'xmr-usa.dwarfpool.com'
POOL_PORT = 8005

POOL_FAILOVER_ENABLE = True
POOL_HOST_FAILOVER = 'xmr-usa.dwarfpool.com'
POOL_PORT_FAILOVER = 8005

LOGLEVEL = 'INFO'
DEBUG = False
LOGFILE = "logfile.log"

Miner.bat
Code:
start /low NsCpuCNMiner64.exe -o stratum+tcp://88.xxx.xxx.5:8025 -u RIG_NAME -p x
newbie
Activity: 2
Merit: 0
September 01, 2017, 12:33:43 PM
#40
This Proxy works with supportxmr.com too (and XMR Stak CPU as miner)
but I can't see the Workers ID in the pool. I can see just one if I set:
MONITORING = True
MONITORING_EMAIL = 'RIG'

with these settings I can see in the pool stats just one WorkerID= RIG

but I want see all the workers separately, how I can do?
I tried edit everything in the config file of XMR Stak CPU
legendary
Activity: 1726
Merit: 1018
August 26, 2017, 04:57:08 PM
#39
Please help me

Quote
2017-08-27 03:23:10,447 INFO stats # 1 peers connected, state changed 1 times
2017-08-27 03:23:10,447 DEBUG protocol # Connected 139.99.9.146
2017-08-27 03:23:10,447 DEBUG protocol # Resuming connection: []
2017-08-27 03:23:10,448 INFO proxy # Connected to Stratum pool at xmr-asia1.nanopool.org:14444
2017-08-27 03:23:11,381 ERROR protocol # [Failure instance: Traceback: : 'id'
C:\Python27\lib\site-packages\twisted\internet\selectreactor.py:149:_doReadOrWrite
C:\Python27\lib\site-packages\twisted\internet\tcp.py:209:doRead
C:\Python27\lib\site-packages\twisted\internet\tcp.py:215:_dataReceived
C:\Users\mm\Desktop\XMR-proxy\xmr-proxy-master\stratum\protocol.py:194:dataReceived
--- ---
C:\Users\mm\Desktop\XMR-proxy\xmr-proxy-master\stratum\protocol.py:240:lineReceived
C:\Users\mm\Desktop\XMR-proxy\xmr-proxy-master\stratum\event_handler.py:7:_handle_event
C:\Users\mm\Desktop\XMR-proxy\xmr-proxy-master\mining_libs\client_service.py:45:handle_event
]
Traceback (most recent call last):
  File "C:\Users\mm\Desktop\XMR-proxy\xmr-proxy-master\stratum\protocol.py", line 240, in lineReceived
    result = self.event_handler._handle_event(msg_method, msg_params, connection_ref=self)
  File "C:\Users\mm\Desktop\XMR-proxy\xmr-proxy-master\stratum\event_handler.py", line 7, in _handle_event
    return defer.maybeDeferred(wrap_result_object, self.handle_event(msg_method, msg_params, connection_ref))
  File "C:\Users\mm\Desktop\XMR-proxy\xmr-proxy-master\mining_libs\client_service.py", line 45, in handle_event
    (blob, job_id, target, user_id) = params["blob"],params["job_id"],params["target"],params["id"]
KeyError: 'id'
2017-08-27 03:23:11,645 WARNING protocol # Failed message: Cannot handle message '{"id":0,"jsonrpc":"2.0","result":{"id":"1","job":{"blob":"0505b9b187cd05944b045d7355b389205ed1cb0027583869ef3d9caf9134d0181afa8fcad8610c0 00000005f5fd448647fd2761178df971c1ec37d85759bdf4c3d72f9dc9e555967bbe5ec11","job_id":"72","target":"cf8b0000"},"status":"OK"},"error":null}' from 139.99.9.146
2017-08-27 03:23:11,648 INFO proxy # Disconnected from Stratum pool at xmr-asia1.nanopool.org:14444
2017-08-27 03:23:11,648 INFO stats # 0 peers connected, state changed 1 times
2017-08-27 03:23:11,648 DEBUG socket_transport # [Failure instance: Traceback (failure with no frames): : Connection to the other side was lost in a non-clean fashion.
]

You sure nanopool supports this proxy?  I was under the impression it only worked on dwarfpool.
newbie
Activity: 31
Merit: 0
August 26, 2017, 04:26:48 PM
#38
Please help me

Quote
2017-08-27 03:23:10,447 INFO stats # 1 peers connected, state changed 1 times
2017-08-27 03:23:10,447 DEBUG protocol # Connected 139.99.9.146
2017-08-27 03:23:10,447 DEBUG protocol # Resuming connection: []
2017-08-27 03:23:10,448 INFO proxy # Connected to Stratum pool at xmr-asia1.nanopool.org:14444
2017-08-27 03:23:11,381 ERROR protocol # [Failure instance: Traceback: : 'id'
C:\Python27\lib\site-packages\twisted\internet\selectreactor.py:149:_doReadOrWrite
C:\Python27\lib\site-packages\twisted\internet\tcp.py:209:doRead
C:\Python27\lib\site-packages\twisted\internet\tcp.py:215:_dataReceived
C:\Users\mm\Desktop\XMR-proxy\xmr-proxy-master\stratum\protocol.py:194:dataReceived
--- ---
C:\Users\mm\Desktop\XMR-proxy\xmr-proxy-master\stratum\protocol.py:240:lineReceived
C:\Users\mm\Desktop\XMR-proxy\xmr-proxy-master\stratum\event_handler.py:7:_handle_event
C:\Users\mm\Desktop\XMR-proxy\xmr-proxy-master\mining_libs\client_service.py:45:handle_event
]
Traceback (most recent call last):
  File "C:\Users\mm\Desktop\XMR-proxy\xmr-proxy-master\stratum\protocol.py", line 240, in lineReceived
    result = self.event_handler._handle_event(msg_method, msg_params, connection_ref=self)
  File "C:\Users\mm\Desktop\XMR-proxy\xmr-proxy-master\stratum\event_handler.py", line 7, in _handle_event
    return defer.maybeDeferred(wrap_result_object, self.handle_event(msg_method, msg_params, connection_ref))
  File "C:\Users\mm\Desktop\XMR-proxy\xmr-proxy-master\mining_libs\client_service.py", line 45, in handle_event
    (blob, job_id, target, user_id) = params["blob"],params["job_id"],params["target"],params["id"]
KeyError: 'id'
2017-08-27 03:23:11,645 WARNING protocol # Failed message: Cannot handle message '{"id":0,"jsonrpc":"2.0","result":{"id":"1","job":{"blob":"0505b9b187cd05944b045d7355b389205ed1cb0027583869ef3d9caf9134d0181afa8fcad8610c0 00000005f5fd448647fd2761178df971c1ec37d85759bdf4c3d72f9dc9e555967bbe5ec11","job_id":"72","target":"cf8b0000"},"status":"OK"},"error":null}' from 139.99.9.146
2017-08-27 03:23:11,648 INFO proxy # Disconnected from Stratum pool at xmr-asia1.nanopool.org:14444
2017-08-27 03:23:11,648 INFO stats # 0 peers connected, state changed 1 times
2017-08-27 03:23:11,648 DEBUG socket_transport # [Failure instance: Traceback (failure with no frames): : Connection to the other side was lost in a non-clean fashion.
]
newbie
Activity: 28
Merit: 0
after receiving 508 peer connection the cmd screen freeze and mining speed in your pool is 0 , is there any limte help me to fix this
full member
Activity: 213
Merit: 100
Hi! How must I run proxy without PAYMENT_ID for mine to poloniex?
hero member
Activity: 809
Merit: 501
December 28, 2016, 01:11:45 AM
#35
Any chance to have simple windows friendly exe file for proxy?

Bump!

It would be great if it could work with other pools as well. The ethereum one works great.
sr. member
Activity: 489
Merit: 260
September 10, 2016, 03:13:37 AM
#34
Mine keeps saying "connection refused" when pointing a miner to it though may be something in my connection settings on the laptop.
member
Activity: 78
Merit: 10
August 29, 2016, 12:50:30 PM
#33
help the proxy don't go

now go with twisted15 64bit

but i don't can to go the claymore
newbie
Activity: 9
Merit: 0
November 01, 2014, 09:45:17 PM
#32
So I figured it out i just right click on it and select the option that says "edit with IDLE"
newbie
Activity: 9
Merit: 0
October 31, 2014, 02:02:23 PM
#31
I followed all the windows steps but when I click on the xmr-proxy.py the command prompt opens for maybe 2 seconds and closes same with all the other .py files any help with this problem would be appreciated
hero member
Activity: 969
Merit: 1000
October 13, 2014, 12:39:18 AM
#30
i wrote my own it works very well!

node.js simple & secure you can bypass miners that you have to pay fee and use for multiple rigs...

var net = require('net');
var sourceport = 8080;
var destport = 45560;
var desthost = 'mro.pool.minergate.com';
var login = '***@gmail.com'; //for minergate your mail for other pools your wallet

net.createServer(function(s)
{
    var buff = "";
    var connected = false;
    var cli = net.createConnection(destport,desthost);
    s.on('data', function(d) {
        if (connected)
        {
           cli.write(d);
        } else {
           buff += d.toString();
        }
    });
   s.on('error', function() {
   //console.log('dile');
    });
    cli.on('connect', function() {
        connected = true;
   if(buff.indexOf('"login": "')>-1)
   {
   try {
   logincik=buff.split('"login": "')[1].split('"')[0];
   buff=buff.replace(logincik,login);
   } catch(e){}
   }
        cli.write(buff);
      //console.log(buff);
    });
    cli.on('error', function() {
   //console.log('wiy');
    });   
    cli.pipe(s);
}).listen(sourceport);
hero member
Activity: 896
Merit: 1000
September 17, 2014, 04:09:35 PM
#29
Have you implemented the failover pool function?
newbie
Activity: 59
Merit: 0
September 11, 2014, 12:26:00 AM
#28
how to monitor each rigs?
we have over 300 rigs, but with the same username and password.  and we can not add work_id for each.


Can you tell me how to mointor all the rigs? used to we use cgminer or sgminer api to check the local ip, 192.168.x.x.



thanks.  all working, but i do not know if i use your pool, how can i monitor all the rigs seperately.
Pages:
Jump to: