Skip to content

feat(channels): add set_nominal_hashrate to client ExtendedChannel#2077

Merged
plebhash merged 1 commit into
stratum-mining:mainfrom
fossatmara:fix/client-channel-set-nominal-hashrate
Feb 7, 2026
Merged

feat(channels): add set_nominal_hashrate to client ExtendedChannel#2077
plebhash merged 1 commit into
stratum-mining:mainfrom
fossatmara:fix/client-channel-set-nominal-hashrate

Conversation

@gimballock
Copy link
Copy Markdown

@gimballock gimballock commented Feb 6, 2026

Add a setter for nominal_hashrate on the client-side ExtendedChannel. This allows downstream consumers (e.g. tProxy) to update the locally tracked hashrate when the downstream vardiff produces an UpdateChannel message, keeping it consistent with actual miner performance.

See: stratum-mining/sv2-apps#242

companion stratum-mining/sv2-apps#245

Comment thread sv2/channels-sv2/src/client/extended.rs Outdated
@GitGab19
Copy link
Copy Markdown
Member

GitGab19 commented Feb 6, 2026

Can you squash last commit?

@plebhash
Copy link
Copy Markdown
Member

plebhash commented Feb 6, 2026

@lucasbalieiro can you double check if we're executing integration tests with the companion here?

I added "companion stratum-mining/sv2-apps#245" the description but not sure if we're getting the right trigger

Add a setter for nominal_hashrate on the client-side ExtendedChannel.
This allows downstream consumers (e.g. tProxy) to update the locally
tracked hashrate when the downstream vardiff produces an UpdateChannel
message, keeping it consistent with actual miner performance.

See: stratum-mining/sv2-apps#242
@gimballock gimballock force-pushed the fix/client-channel-set-nominal-hashrate branch from b386b41 to 2e4323b Compare February 6, 2026 22:48
@lucasbalieiro
Copy link
Copy Markdown
Collaborator

@lucasbalieiro can you double check if we're executing integration tests with the companion here?

I added "companion stratum-mining/sv2-apps#245" the description but not sure if we're getting the right trigger

From the latest integration test execution seems that every thing is alright:

See: https://github.com/stratum-mining/stratum/actions/runs/21768667046/job/62810936243?pr=2077#step:9:18

image

@plebhash plebhash merged commit c05fd99 into stratum-mining:main Feb 7, 2026
14 checks passed
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.

4 participants