xelis-project / xelis-blockchain

A private blockDAG with Homomorphic Encryption and Smart Contracts
373 stars 89 forks source link

Add API for miner stats #81

Closed Epsiloong closed 4 months ago

Epsiloong commented 4 months ago

Description

This adds a simple http listener which can be enabled with "--broadcast-address x.x.x.x:xxxx" and displays the hashrate, blocks found, and rejections as json. This allows for easy stats grabbing within hiveos or mmpos.

Type of change

Please select the right one.

Which part is impacted ?

Checklist

Epsiloong commented 4 months ago

Closes #33

Slixe commented 4 months ago

Thank you a lot

I've cherry-pick your commits and created a new PR with few changes.

For future, start from the dev branch directly for full compatibility

See #82