Bitcoin Forum
April 25, 2024, 12:00:39 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2] 3 »  All
  Print  
Author Topic: [XMR] Monero stratum proxy (open-source)  (Read 81784 times)
Eastwind
Hero Member
*****
Offline Offline

Activity: 896
Merit: 1000



View Profile
August 15, 2014, 06:21:11 AM
 #21



The log file grows too fast. Is it possible to disable saving to the file?
Yes, in config.py change to
Code:
LOGLEVEL = 'INFO'
DEBUG = False

It still grows, although not so fast. Can we disable it totally?
Transactions must be included in a block to be properly completed. When you send a transaction, it is broadcast to miners. Miners can then optionally include it in their next blocks. Miners will be more inclined to include your transaction if it has a higher transaction fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714046439
Hero Member
*
Offline Offline

Posts: 1714046439

View Profile Personal Message (Offline)

Ignore
1714046439
Reply with quote  #2

1714046439
Report to moderator
Atrides (OP)
Hero Member
*****
Offline Offline

Activity: 658
Merit: 500


Admin of DwarfPool.com


View Profile WWW
August 15, 2014, 11:39:52 AM
 #22



The log file grows too fast. Is it possible to disable saving to the file?
Yes, in config.py change to
Code:
LOGLEVEL = 'INFO'
DEBUG = False

It still grows, although not so fast. Can we disable it totally?

Yes, just comment it like here

Code:
#LOGFILE = "logfile.log"

DwarfPool Quality you can trust! http://DwarfPool.com Reliable Monero, Zcash and ETH Pool Monero Proxy
Anonymous pool with failover servers and PPS, Profit Calculator and Price chart: [XMR][ETH][ZEC]... Support thread
MoneroClub - free P2P Exchange Platform www.MoneroClub.com
ballot
Hero Member
*****
Offline Offline

Activity: 969
Merit: 1000



View Profile
August 15, 2014, 08:08:56 PM
Last edit: August 15, 2014, 08:22:32 PM by ballot
 #23

i just edited and it works with other pools  Grin

client_service.py

    def handle_event(self, method, params, connection_ref):
        '''Handle RPC calls and notifications from the pool'''
        # Yay, we received something from the pool,
        # let's restart the timeout.
        self.reset_timeout()
        
        if method == 'job':
            '''Proxy just received information about new mining job'''
            if 'id' in params:
            (blob, job_id, target, user_id) = params["blob"],params["job_id"],params["target"],params["id"]
         
            # Broadcast to Stratum client
            stratum_listener.MiningSubscription.on_template(job_id, blob, target, user_id)
            
            # Broadcast to getwork clients
            job = Job.build_from_pool(job_id, blob, target)
            log.info("New job %s for %s" % (job_id, user_id))

            self.job_registry.add_job(job, True)
            else:
            (blob, job_id, target) = params["blob"],params["job_id"],params["target"]
            stratum_listener.MiningSubscription.on_template_all(job_id, blob, target)
            job = Job.build_from_pool(job_id, blob, target)
            log.info("New job %s for all" % (job_id))

            self.job_registry.add_job(job, True)
        else:
            '''Pool just asked us for something which we don't support...'''
            log.error("Unhandled method %s with params %s" % (method, params))





stratum_listener.py

    @classmethod
    def on_template(cls, job_id, blob, target, user_id):
        '''Push new job to subscribed clients'''
        #cls.last_broadcast = (job_id, blob, target)
        #if user_id:
        #    cls.user_id = user_id
        if cls.subscribers.has_key(user_id):
            subscr = cls.subscribers[user_id]
            subscr.emit_single({'job_id':job_id, 'blob':blob, 'target':target})
         
    @classmethod
    def on_template_all(cls, job_id, blob, target):
      for subs in cls.subscribers:
         try:
            subscr = cls.subscribers[subs]
            subscr.emit_single({'job_id':job_id, 'blob':blob, 'target':target})
         except Exception:
            pass


but many invalid job_id

{"id":19,"jsonrpc":"2.0","error":{"code":-1,"message":"Invalid job id"}}
not sure why i dont know python very well

packet logs:


{"jsonrpc": "2.0", "params": {"login": "437CToWfQb5HFFraTPhaS8ZfTthUwLdGgPHrciV9uWaS1jivf6r****PnhckPD", "agent": "proxy", "pass": "1"}, "id": 1, "method": "login"}

{"id":1,"jsonrpc":"2.0","error":null,"result":{"id":"560139597905799","job":{"blob":"01009ed5b99f058b1f02b11e7d4dcac5ef8d5f2ac434727a38c9b7055ce59d59d08451f0b9fa4d0 0000000ed5eb0d5b5e8bef1970ff0e8ff6232341225c0c4a275e074aa85da2f7219570801","job_id":"544189373659901","target":"f6bc0800"},"status":"OK"}}

{"jsonrpc": "2.0", "params": {"login": "437CToWfQb5HFFraTPhaS8ZfTthUwLdGgPHrciV9uWaS1jivf6r****PnhckPD", "pass": "1"}, "id": 2, "method": "login"}

{"id":2,"jsonrpc":"2.0","error":null,"result":{"id":"254695240897126","job":{"blob":"01009ed5b99f058b1f02b11e7d4dcac5ef8d5f2ac434727a38c9b7055ce59d59d08451f0b9fa4d0 00000004f7c1e80eb27f4d27b2b6c3120b8173c7778e6cf3cee976b1628bd800e70d27b01","job_id":"434091379633173","target":"f6bc0800"},"status":"OK"}}

{"jsonrpc": "2.0", "params": {"nonce": "d3030000", "result": "c6146f8dc56967a2f17f2bd6c995bcc0bc8814a82451e1d9facc09aa68e80100", "id": "254695240897126", "job_id": "434091379633173"}, "id": 3, "method": "submit"}

{"id":3,"jsonrpc":"2.0","error":null,"result":{"status":"OK"}}

{"jsonrpc": "2.0", "params": {"login": "437CToWfQb5HFFraTPhaS8ZfTthUwLdGgPHrciV9uWaS1jivf6r****PnhckPD", "pass": "1"}, "id": 4, "method": "login"}
{"jsonrpc": "2.0", "params": {"login": "437CToWfQb5HFFraTPhaS8ZfTthUwLdGgPHrciV9uWaS1jivf6r****PnhckPD", "pass": "1"}, "id": 5, "method": "login"}

{"id":4,"jsonrpc":"2.0","error":null,"result":{"id":"318788292887620","job":{"blob":"01009ed5b99f058b1f02b11e7d4dcac5ef8d5f2ac434727a38c9b7055ce59d59d08451f0b9fa4d0 0000000bb9d5264e33dca797d5cc076d36f7312c2668a8918014b00c95886c3cf569e0b01","job_id":"329343325784429","target":"f6bc0800"},"status":"OK"}}
{"id":5,"jsonrpc":"2.0","error":null,"result":{"id":"531188863515853","job":{"blob":"01009ed5b99f058b1f02b11e7d4dcac5ef8d5f2ac434727a38c9b7055ce59d59d08451f0b9fa4d0 0000000510959c650a7d9e264ad669f6fd8406e90cefcafe87efac62d7c9ee082bb3f9301","job_id":"420845326664857","target":"f6bc0800"},"status":"OK"}}
{"jsonrpc":"2.0","method":"job","params":{"blob":"01009bd7b99f05d4f387598be1bac5ed947ea47c9a0aee0bace4ac84f7cf40c321e0d78e3c01080 000000075fa367d49fc5499789bf9dd90a2905ba9af403f505c616cbf4a25a53138257308","job_id":"480231605377048","target":"f6bc0800"}}
{"jsonrpc":"2.0","method":"job","params":{"blob":"01009bd7b99f05d4f387598be1bac5ed947ea47c9a0aee0bace4ac84f7cf40c321e0d78e3c01080 00000000b739358ffe4e43ed0c29665ce1aaac5cf2cf74dec4435abb7a452cf561e21d408","job_id":"308798798942007","target":"f6bc0800"}}
{"jsonrpc":"2.0","method":"job","params":{"blob":"01009bd7b99f05d4f387598be1bac5ed947ea47c9a0aee0bace4ac84f7cf40c321e0d78e3c01080 0000000f2c67f46b3cef2d5595731522af860fafce340d548d4d1628c987d02b64107ec08","job_id":"132683923211880","target":"f6bc0800"}}
{"jsonrpc":"2.0","method":"job","params":{"blob":"01009bd7b99f05d4f387598be1bac5ed947ea47c9a0aee0bace4ac84f7cf40c321e0d78e3c01080 00000006811f7c72abb962371f7337cbc65ca76d8e0ed8b807a1f735a4ce94fd8ec319708","job_id":"906486337329261","target":"f6bc0800"}}

{"jsonrpc": "2.0", "params": {"nonce": "92030000", "result": "e4ab04f8efda48353fb9b6f65438f0f1b5597ee4f3ccfa6c98a1b79290f70500", "id": "318788292887620", "job_id": "906486337329261"}, "id": 6, "method": "submit"}

{"id":6,"jsonrpc":"2.0","error":{"code":-1,"message":"Invalid job id"}}

Yanakitu Tenatako
Sr. Member
****
Offline Offline

Activity: 328
Merit: 250


View Profile
August 26, 2014, 01:24:29 PM
 #24

Is it ok to use stratum proxy with minergate pool?

BitFinex, best trading platform ever.
Register here: https://www.bitfinex.com/?refcode=53wNhi4gTx
Atrides (OP)
Hero Member
*****
Offline Offline

Activity: 658
Merit: 500


Admin of DwarfPool.com


View Profile WWW
August 26, 2014, 02:31:26 PM
 #25

Is it ok to use stratum proxy with minergate pool?


currently works only with DwarfPool

DwarfPool Quality you can trust! http://DwarfPool.com Reliable Monero, Zcash and ETH Pool Monero Proxy
Anonymous pool with failover servers and PPS, Profit Calculator and Price chart: [XMR][ETH][ZEC]... Support thread
MoneroClub - free P2P Exchange Platform www.MoneroClub.com
Yanakitu Tenatako
Sr. Member
****
Offline Offline

Activity: 328
Merit: 250


View Profile
September 07, 2014, 08:20:46 PM
 #26

Any chance to have simple windows friendly exe file for proxy?

BitFinex, best trading platform ever.
Register here: https://www.bitfinex.com/?refcode=53wNhi4gTx
9RAY
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
September 08, 2014, 10:11:02 AM
 #27

Where i can get RIGs stat on site? I see only summarized info.
ergou
Newbie
*
Offline Offline

Activity: 59
Merit: 0


View Profile
September 11, 2014, 04: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.
Eastwind
Hero Member
*****
Offline Offline

Activity: 896
Merit: 1000



View Profile
September 17, 2014, 08:09:35 PM
 #29

Have you implemented the failover pool function?
ballot
Hero Member
*****
Offline Offline

Activity: 969
Merit: 1000



View Profile
October 13, 2014, 04: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);
nitro64
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
October 31, 2014, 06: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
nitro64
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
November 02, 2014, 01:45:17 AM
 #32

So I figured it out i just right click on it and select the option that says "edit with IDLE"
gegstore
Member
**
Offline Offline

Activity: 78
Merit: 10


View Profile
August 29, 2016, 04:50:30 PM
Last edit: August 30, 2016, 09:30:13 AM by gegstore
 #33

help the proxy don't go

now go with twisted15 64bit

but i don't can to go the claymore

DarkStar1O9
Sr. Member
****
Offline Offline

Activity: 489
Merit: 260


View Profile WWW
September 10, 2016, 07: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.

ICONOMI - Fund Management Platform ❘|❘ ICO ❘|❘ DISCUSSION
Beave162
Hero Member
*****
Offline Offline

Activity: 809
Merit: 501



View Profile
December 28, 2016, 05: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.

YaCoin: YL5kf54wPPXKsXd5T18xCaNkyUsS1DgY7z 
BitCoin: 14PFbLyUdTyxZg3V8hnvj5VXkx3dhthmDj
Bitock
Full Member
***
Offline Offline

Activity: 213
Merit: 100


View Profile
June 08, 2017, 07:18:57 PM
 #36

Hi! How must I run proxy without PAYMENT_ID for mine to poloniex?
evilcode1
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
June 13, 2017, 08:52:15 PM
 #37

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
helpme85
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
August 26, 2017, 08: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: <type 'exceptions.KeyError'>: '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
--- <exception caught here> ---
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): <class 'twisted.internet.error.ConnectionLost'>: Connection to the other side was lost in a non-clean fashion.
]
not.you
Legendary
*
Offline Offline

Activity: 1726
Merit: 1018


View Profile
August 26, 2017, 08: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: <type 'exceptions.KeyError'>: '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
--- <exception caught here> ---
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): <class 'twisted.internet.error.ConnectionLost'>: 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.
Travis90x
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
September 01, 2017, 04: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
Pages: « 1 [2] 3 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!