SChernykh / p2pool

Decentralized pool for Monero mining
GNU General Public License v3.0
1.03k stars 123 forks source link

Adding workers data to api #278

Closed BadTigrou closed 9 months ago

BadTigrou commented 9 months ago

Adding workers data into stratum api file..

{ "hashrate_15m": 1161, "hashrate_1h": 1161, "hashrate_24h": 1161, "total_hashes": 97539, "shares_found": 0, "shares_failed": 0, "average_effort": 0, "current_effort": 0.124, "connections": 2, "incoming_connections": 2, "block_reward_share_percent": 0.317, "workers": [ "192.168.1.1:44628,60,2501,518,z", "192.168.1.2:46396,64,2501,1547,y" ] }

Data is structured as follow : ip:port,uptime,difficulty,hashrate,name

For archive purporse, the discussion behind this update is in initial pull request https://github.com/SChernykh/p2pool/pull/277