Return current round work in pool stats#309
Merged
paratoxicdev merged 2 commits intoJul 21, 2026
Merged
Conversation
Contributor
Author
|
tried having codex just do this one since it seems pretty straightforward. looks like we have the data there, we just didn't expose it |
…s into codex/enable-pool-total-work
paratoxicdev
approved these changes
Jul 21, 2026
paratoxicdev
left a comment
Contributor
There was a problem hiding this comment.
LGTM
This is not rendered anywhere in the frontend, we could think about putting that somewhere but it's good to merge like this for now
Contributor
Author
|
okay, thanks! I want to update the app's work then to use it at least as I was doing an estimate in there based on the top user list |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
/api/pool-stats currently hardcodes workSinceLastBlock to 0, even though the SUM(total_work) helper is already there.
This enables the helper so the API returns the pool's actual total work for the current round. It returns null if current-round data isn't available yet.
Lint, TypeScript, and the production build pass.