Skip to content

Add persistence to shares' stats#145

Merged
GitGab19 merged 2 commits into
stratum-mining:mainfrom
GitGab19:add-persistence-to-shares
May 6, 2026
Merged

Add persistence to shares' stats#145
GitGab19 merged 2 commits into
stratum-mining:mainfrom
GitGab19:add-persistence-to-shares

Conversation

@GitGab19
Copy link
Copy Markdown
Member

@GitGab19 GitGab19 commented May 6, 2026

This PR adds persistence to shares' stats: shares submitted and shares rejected (with the eventual rejection_reason) are now persistent in the same way we are already persisting best_difficulty and hashrate stats.

Closes #141

@GitGab19 GitGab19 force-pushed the add-persistence-to-shares branch from 474dc19 to e2f3eff Compare May 6, 2026 10:43
@GitGab19
Copy link
Copy Markdown
Member Author

GitGab19 commented May 6, 2026

In order to test this, you can simply connect to SRI SOLO pool, connect a cpu-miner, wait for some shares, and then kill the cpu-miner.

cc @pavlenex

@GitGab19 GitGab19 requested review from lucasbalieiro and pavlenex May 6, 2026 11:40
@plebhash
Copy link
Copy Markdown
Member

plebhash commented May 6, 2026

@lucasbalieiro can you have a look?

@GitGab19 GitGab19 force-pushed the add-persistence-to-shares branch from e2f3eff to 4b65088 Compare May 6, 2026 16:56
Copy link
Copy Markdown
Collaborator

@lucasbalieiro lucasbalieiro left a comment

Choose a reason for hiding this comment

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

tACK 4b65088 with a superficial look at code.

Seems good enough. The other things that are in my head I can check after the release, since they are not blockers.

@GitGab19
Copy link
Copy Markdown
Member Author

GitGab19 commented May 6, 2026

@lucasbalieiro can you open a tracker issue with these points you already have in mind?

@GitGab19 GitGab19 merged commit c38e44f into stratum-mining:main May 6, 2026
5 checks passed
@GitGab19 GitGab19 deleted the add-persistence-to-shares branch May 6, 2026 17:38
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.

Persist rejected shares

3 participants