CryptoManiac / stratum-mining-proxy

mining proxy
63 stars 59 forks source link

Insert data to mysql #9

Open nberesnev83 opened 10 years ago

nberesnev83 commented 10 years ago

Is it possible to record information on production in mysql, work has been accepted or not, and technical information? How to do it? It is advisable not once, but several batches of transactions. Help us to please.

CryptoManiac commented 10 years ago

It is possible to implement sharelogging trough modification of submit function.

https://github.com/CryptoManiac/stratum-mining-proxy/blob/master/mining_libs/jobs.py#L217

But I guess that you need a stratum server. Stratum proxy has some scalability limitations which prevents using it for production. You can't handle more than 255 connections simultaneously, for example...