Skip to content

Return current round work in pool stats#309

Merged
paratoxicdev merged 2 commits into
parasitepool:masterfrom
mrv777:codex/enable-pool-total-work
Jul 21, 2026
Merged

Return current round work in pool stats#309
paratoxicdev merged 2 commits into
parasitepool:masterfrom
mrv777:codex/enable-pool-total-work

Conversation

@mrv777

@mrv777 mrv777 commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

/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.

@mrv777 mrv777 changed the title Expose current round total work in pool stats Return current round work in pool stats Jul 19, 2026
@mrv777

mrv777 commented Jul 19, 2026

Copy link
Copy Markdown
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

@paratoxicdev paratoxicdev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@paratoxicdev
paratoxicdev merged commit 3f22190 into parasitepool:master Jul 21, 2026
1 check passed
@mrv777

mrv777 commented Jul 21, 2026

Copy link
Copy Markdown
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

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

Successfully merging this pull request may close these issues.

2 participants