Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Connection lost when using scrypt p2pool #65

Open
p4u opened this issue Mar 6, 2014 · 0 comments
Open

Connection lost when using scrypt p2pool #65

p4u opened this issue Mar 6, 2014 · 0 comments

Comments

@p4u
Copy link

p4u commented Mar 6, 2014

Stratum Proxy does not work propperly with p2pool. I'm using the implementation from Rav3nPL [1]. If I connect the worker directly to the p2pool node it works fine. But if I use the proxy it does not. For some reason it lose the connectivity every few seconds. If used the same stratum proxy with other non-p2p pools and works fine.

I've experienced this problem with several p2pool nodes such as [2]. And also with my own.

[1] https://github.com/Rav3nPL/p2pool-rav
[2] solidpool.org:9555

LOG:

root@host:~/stratum-proxy#  python2.7 mining_proxy.py -o p2poolhost -p 9333 -sp 3338 -gp 8859 -st -cu LcEMRjqWeTG9czkX3DGmQpqrZME4z16y1G -cp x -v
----------------
Custom settings:
BITCOIN_TRUSTED_USER : gNqu1Sz6c6M8ZJJ6UTVqghvDRigLXKEBT7
----------------
2014-03-06 16:36:11,638 DEBUG stats logger.get_logger # Logging initialized
2014-03-06 16:36:11,644 DEBUG protocol logger.get_logger # Logging initialized
2014-03-06 16:36:11,644 DEBUG socket_transport logger.get_logger # Logging initialized
2014-03-06 16:36:11,663 DEBUG proxy logger.get_logger # Logging initialized
2014-03-06 16:36:11,663 DEBUG proxy logger.get_logger # Logging initialized
2014-03-06 16:36:11,664 INFO proxy jobs.<module> # C extension for midstate not available. Using default implementation instead.
2014-03-06 16:36:11,664 DEBUG proxy logger.get_logger # Logging initialized
2014-03-06 16:36:11,664 DEBUG proxy logger.get_logger # Logging initialized
2014-03-06 16:36:11,664 DEBUG proxy logger.get_logger # Logging initialized
2014-03-06 16:36:11,664 DEBUG proxy logger.get_logger # Logging initialized
2014-03-06 16:36:11,665 DEBUG proxy logger.get_logger # Logging initialized
2014-03-06 16:36:11,665 DEBUG proxy logger.get_logger # Logging initialized
2014-03-06 16:36:11,665 DEBUG proxy logger.get_logger # Logging initialized
2014-03-06 16:36:11,665 ERROR proxy mining_proxy.main # Stratum host/port autodetection failed
Traceback (most recent call last):
  File "mining_proxy.py", line 183, in main
    new_host = (yield utils.detect_stratum(args.host, args.port))
AttributeError: 'module' object has no attribute '_parse'
2014-03-06 16:36:11,665 WARNING proxy mining_proxy.main # Stratum proxy version: 1.5.6
2014-03-06 16:36:11,667 WARNING proxy mining_proxy.test_update # Checking for updates...
2014-03-06 16:36:11,723 WARNING proxy mining_proxy.main # Trying to connect to Stratum pool at p2poolhost:9333
2014-03-06 16:36:11,748 INFO stats stats.print_stats # 1 peers connected, state changed 1 times
2014-03-06 16:36:11,748 DEBUG protocol protocol.connectionMade # Connected 178.32.YYY.XXX
2014-03-06 16:36:11,748 DEBUG protocol protocol.connectionMade # Resuming connection: []
2014-03-06 16:36:11,748 INFO proxy mining_proxy.on_connect # Connected to Stratum pool at p2poolhost:9333
2014-03-06 16:36:11,748 INFO proxy mining_proxy.on_connect # Subscribing for mining jobs
2014-03-06 16:36:11,748 DEBUG protocol protocol.writeJsonRequest # < {"params": [], "id": 1, "method": "mining.subscribe"}
2014-03-06 16:36:11,769 DEBUG protocol protocol.lineReceived # > {u'result': [[u'mining.notify', u'ae6812eb4cd7735a302a8a9dd95cf71f'], u'', 4], u'jsonrpc': u'2.0', u'id': 1, u'error': None}
2014-03-06 16:36:11,769 WARNING proxy mining_proxy.on_connect # Authorizing custom user LcEMRjqWeTG9czkX3DGmQpqrZME4z16y1G, password x
2014-03-06 16:36:11,769 DEBUG protocol protocol.writeJsonRequest # < {"params": ["LcEMRjqWeTG9czkX3DGmQpqrZME4z16y1G", "x"], "id": 2, "method": "mining.authorize"}
2014-03-06 16:36:11,771 WARNING proxy mining_proxy.main # -----------------------------------------------------------------------
2014-03-06 16:36:11,771 WARNING proxy mining_proxy.main # PROXY IS LISTENING ON ALL IPs ON PORT 3338 (stratum) AND 8859 (getwork)
2014-03-06 16:36:11,771 WARNING proxy mining_proxy.main # -----------------------------------------------------------------------
2014-03-06 16:36:11,771 DEBUG protocol protocol.lineReceived # > {u'jsonrpc': u'2.0', u'params': [5.513984465505928], u'method': u'mining.set_difficulty', u'id': 243340609}
2014-03-06 16:36:11,771 INFO proxy client_service.handle_event # Setting new difficulty: 5.51398446551
2014-03-06 16:36:11,771 DEBUG protocol protocol.writeJsonResponse # < {"error": null, "id": 243340609, "result": null}
2014-03-06 16:36:11,786 INFO proxy mining_proxy.on_disconnect # Disconnected from Stratum pool at p2poolhost:9333
2014-03-06 16:36:11,787 INFO stats stats.print_stats # 0 peers connected, state changed 1 times
2014-03-06 16:36:11,787 DEBUG socket_transport socket_transport.clientConnectionLost # [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionLost'>: Connection to the other side was lost in a non-clean fashion.
]
2014-03-06 16:36:14,977 INFO stats stats.print_stats # 1 peers connected, state changed 1 times
2014-03-06 16:36:14,977 DEBUG protocol protocol.connectionMade # Connected 178.32.221.134
2014-03-06 16:36:14,977 DEBUG protocol protocol.connectionMade # Resuming connection: []
2014-03-06 16:36:14,978 INFO proxy mining_proxy.on_connect # Connected to Stratum pool at p2poolhost:9333
2014-03-06 16:36:14,978 INFO proxy mining_proxy.on_connect # Subscribing for mining jobs
2014-03-06 16:36:14,978 DEBUG protocol protocol.writeJsonRequest # < {"params": [], "id": 1, "method": "mining.subscribe"}
2014-03-06 16:36:15,077 DEBUG protocol protocol.lineReceived # > {u'result': [[u'mining.notify', u'ae6812eb4cd7735a302a8a9dd95cf71f'], u'', 4], u'jsonrpc': u'2.0', u'id': 1, u'error': None}
2014-03-06 16:36:15,077 WARNING proxy mining_proxy.on_connect # Authorizing custom user LcEMRjqWeTG9czkX3DGmQpqrZME4z16y1G, password x
2014-03-06 16:36:15,077 DEBUG protocol protocol.writeJsonRequest # < {"params": ["LcEMRjqWeTG9czkX3DGmQpqrZME4z16y1G", "x"], "id": 2, "method": "mining.authorize"}
2014-03-06 16:36:15,077 DEBUG protocol protocol.lineReceived # > {u'jsonrpc': u'2.0', u'params': [5.495796266477555], u'method': u'mining.set_difficulty', u'id': 538895357}
2014-03-06 16:36:15,077 INFO proxy client_service.handle_event # Setting new difficulty: 5.49579626648
2014-03-06 16:36:15,077 DEBUG protocol protocol.writeJsonResponse # < {"error": null, "id": 538895357, "result": null}
2014-03-06 16:36:15,093 INFO proxy mining_proxy.on_disconnect # Disconnected from Stratum pool at p2poolhost:9333
2014-03-06 16:36:15,094 INFO stats stats.print_stats # 0 peers connected, state changed 1 times
2014-03-06 16:36:15,094 DEBUG socket_transport socket_transport.clientConnectionLost # [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionLost'>: Connection to the other side was lost in a non-clean fashion.
]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant