-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(http-stats): added /miners endpoint to http server (#43)
Description --- Added new `/miners` endpoint to http server to show how many shares particular miners have. Motivation and Context --- How Has This Been Tested? --- - Start P2Pool - Query http://127.0.0.1:19000/miners Example response: ```json { "sha3": { "327atsnkv9bFARzE6fayMGWmjj13mArRHNAb2U2nNZXUc4vPnkfHkAjiYaBD7x49HeNTzw46Zjrkrqt4sB4M9PMTjBf": 35, "322SDoFr5ZqC4mpLtxoEow2zH4zdkZGpWgsVFzYQSgvZoSfgcGmrg3zmyyBAkGPDcoqe7pimicfz3wdhNDHrdaoJ7VD": 60, "324wcQjgDRE6Uz647Kjh6Zp1dNX8scYbLE3nXk2x65X5qyvoU8NjbLCSmzxSfUuNvhBbTiauJFRLhP4pepkLst7Q4Dt": 60 }, "randomx": { "322SDoFr5ZqC4mpLtxoEow2zH4zdkZGpWgsVFzYQSgvZoSfgcGmrg3zmyyBAkGPDcoqe7pimicfz3wdhNDHrdaoJ7VD": 1, "324wcQjgDRE6Uz647Kjh6Zp1dNX8scYbLE3nXk2x65X5qyvoU8NjbLCSmzxSfUuNvhBbTiauJFRLhP4pepkLst7Q4Dt": 3 } } ``` What process can a PR reviewer use to test or verify this change? --- <!-- Checklist --> <!-- 1. Is the title of your PR in the form that would make nice release notes? The title, excluding the conventional commit tag, will be included exactly as is in the CHANGELOG, so please think about it carefully. --> Breaking Changes --- - [x] None - [ ] Requires data directory on base node to be deleted - [ ] Requires hard fork - [ ] Other - Please specify <!-- Does this include a breaking change? If so, include this line as a footer --> <!-- BREAKING CHANGE: Description what the user should do, e.g. delete a database, resync the chain -->
- Loading branch information
Showing
6 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "sha_p2pool" | ||
version = "0.1.5-pre.6" | ||
version = "0.1.5-pre.7" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters