Bitcoin Forum
March 29, 2017, 03:01:11 PM *
News: Latest stable version of Bitcoin Core: 0.14.0  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: « 1 [2]  All
  Print  
Author Topic: [XMR] Monero stratum proxy (open-source)  (Read 66204 times)
Eastwind
Hero Member
*****
Offline Offline

Activity: 896



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?
1490799671
Hero Member
*
Offline Offline

Posts: 1490799671

View Profile Personal Message (Offline)

Ignore
1490799671
Reply with quote  #2

1490799671
Report to moderator
1490799671
Hero Member
*
Offline Offline

Posts: 1490799671

View Profile Personal Message (Offline)

Ignore
1490799671
Reply with quote  #2

1490799671
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
Atrides
Hero Member
*****
Offline Offline

Activity: 644


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: 680


View Profile
August 15, 2014, 08:08:56 PM
 #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: 302


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
Hero Member
*****
Offline Offline

Activity: 644


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: 302


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


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

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

Activity: 59


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



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

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

Activity: 680


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


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


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
Jr. Member
*
Offline Offline

Activity: 41


View Profile
August 29, 2016, 04:50:30 PM
 #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: 261


View Profile
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: 687



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
Pages: « 1 [2]  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!