Add immediate upstream difficulty propagation #561

Open
opened 2026-05-27 14:07:22 +00:00 by paratoxic · 0 comments
Owner

Currently, upstream mining.set_difficulty changes are only applied to downstream miners when the next workbase update arrives. Add a dedicated watch channel for difficulty so stratifiers can react immediately.

If upstream difficulty decreases between workbase updates, downstream miners may submit shares that get rejected.

*Add watch::channel alongside the existing workbase channel, and handle it in the stratifier select loop.

Currently, upstream mining.set_difficulty changes are only applied to downstream miners when the next workbase update arrives. Add a dedicated watch channel for difficulty so stratifiers can react immediately. If upstream difficulty decreases between workbase updates, downstream miners may submit shares that get rejected. *Add watch::channel<Difficulty> alongside the existing workbase channel, and handle it in the stratifier select loop.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
parasitepool/para#561
No description provided.