moopless / stratum-mining-litecoin

This fork is no longer maintained. Please use https://github.com/ahmedbodi/stratum-mining
Other
38 stars 35 forks source link

About SSL missing? #53

Closed KDNT closed 11 years ago

KDNT commented 11 years ago

I ran stratum in cenos and got and message like this

2013-08-16 20:23:12+0800 [HTTPPageGetter,client] Cannot initiate SSL context, are SSL_PRIVKEY or SSL_CACERT missing?

Los like this:

2013-08-16 20:23:12,341 INFO mining # Connecting to litecoind... 2013-08-16 20:23:12+0800 [-] Log opened. 2013-08-16 20:23:12+0800 [-] twistd 13.1.0 (/usr/bin/python 2.6.6) starting up. 2013-08-16 20:23:12+0800 [-] reactor class: twisted.internet.epollreactor.EPollReactor. 2013-08-16 20:23:12,348 INFO mining # Connected to litecoind - Ready to GO! 2013-08-16 20:23:12,351 INFO coinbaser # Coinbase address 'fpG8pZ7rwBSoEq9TyKxKgomQjiPi8DaPSa' is valid 2013-08-16 20:23:12,352 INFO mining # MINING SERVICE IS READY 2013-08-16 20:23:12+0800 [HTTPPageGetter,client] Loading of signing key 'None' failed, protocol messages cannot be signed. 2013-08-16 20:23:12+0800 [HTTPPageGetter,client] Cannot initiate SSL context, are SSL_PRIVKEY or SSL_CACERT missing? 2013-08-16 20:23:12+0800 [HTTPPageGetter,client] This will skip all SSL-based transports. 2013-08-16 20:23:12+0800 [HTTPPageGetter,client] SocketTransportFactory starting on 3333 2013-08-16 20:23:12+0800 [HTTPPageGetter,client] Starting factory <stratum.socket_transport.SocketTransportFactory instance at 0x1991098> 2013-08-16 20:23:12,486 INFO template_registry # New template for 000000001faa20963799ab50c4ed7ca12c980bc081abdd18f7bc0b1fb3505bcd 2013-08-16 20:23:12,487 INFO subscription # BROADCASTED to 0 connections in 0.000 sec 2013-08-16 20:23:12,487 INFO template_registry # Update finished, 0.001 sec, 1 txes 2013-08-16 20:23:17,357 INFO block_updater # Checking for new block. 2013-08-16 20:23:22,352 INFO block_updater # Checking for new block. 2013-08-16 20:23:27,352 INFO block_updater # Checking for new block. 2013-08-16 20:23:27,355 INFO block_updater # New block! Prevhash: 0000000020cb4fc9785cf14887609a500e92e8b8289ae7d3825c32903994befe 2013-08-16 20:23:27,375 INFO template_registry # New template for 0000000020cb4fc9785cf14887609a500e92e8b8289ae7d3825c32903994befe 2013-08-16 20:23:27,375 INFO subscription # BROADCASTED to 0 connections in 0.000 sec 2013-08-16 20:23:27,375 INFO template_registry # Update finished, 0.001 sec, 1 txes

I point my miners to port 3333, shares were accepted , does is matter by the SSL problem?

moopless commented 11 years ago

This can be safely ignored. Stratum-core loads the SSL service by default and it would require a modification upstream to get rid of the messages. Since it is missing the certs it does not load the service (and the port is none be default). If you want to get rid of the messages you can edit the service.py in stratum-core and comment out the lines where it loads the SSL service.