Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

miner output option #33

Open
snoby opened this issue Apr 23, 2024 · 2 comments
Open

miner output option #33

snoby opened this issue Apr 23, 2024 · 2 comments

Comments

@snoby
Copy link

snoby commented Apr 23, 2024

It would be amazing if you could add an option to the miner to just output the status bar data to a text file or stdout. That could make it so a hiveOS wrapper could be made. The wrapper would grep the output at 10 second intervals to get data.

As a stretch goal it would be SUPER awesome if you could run an http server and server out json. If I'm not being too greedy if you could output what each core is doing hashrate wise that would make the implementation to be complete.

Thanks and happy to provide any assistance that i can.

@Slixe
Copy link
Member

Slixe commented Apr 23, 2024

I can add an optional feature to the miner to expose current data (blocks accepted / blocks rejected), threads count, and also returns the current total hashrate.

Is it needed to have the hashrate of each threads ?

@snoby
Copy link
Author

snoby commented Apr 23, 2024

That would be great. The hashrate of each thread is not necessary. In Hive OS a process calls a wrapper layer bash script that needs to return data in json format. Typically the wrapper layer will just grep into the log file to get this info, which can be done, but it sure would be nice if a call to a local socket could be done and the data formatted in json can be retrieved. However a streaming log is fine as well. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants