Skip to content

FIX upstream share classification by preserving the aggregate pool target#258

Merged
Fi3 merged 1 commit into
dmnd-pool:masterfrom
Fi3:FixUpstreamRetarget
May 6, 2026
Merged

FIX upstream share classification by preserving the aggregate pool target#258
Fi3 merged 1 commit into
dmnd-pool:masterfrom
Fi3:FixUpstreamRetarget

Conversation

@Fi3
Copy link
Copy Markdown
Contributor

@Fi3 Fi3 commented May 6, 2026

Keep the shared upstream target sourced only from real upstream channel state instead of replacing it when individual downstream channels open. Downstream-specific targets remain per-channel, so share classification continues to compare bitcoin, aggregate upstream, and downstream targets in the intended order.

Emit immediate channel retarget updates whenever aggregate nominal hashrate changes during downstream registration, downstream removal, or hashrate reconciliation. This keeps the pool target aligned during connection churn, prevents local-only shares from being escalated upstream, and leaves the submit limiter as a safety net instead of the steady-state control path.

Add regression coverage for shared target stability across multiple downstream opens, local classification with distinct downstream targets, and immediate upstream retarget propagation.

…rget

Keep the shared upstream target sourced only from real upstream channel state instead of
replacing it when individual downstream channels open. Downstream-specific targets remain
per-channel, so share classification continues to compare bitcoin, aggregate upstream, and
downstream targets in the intended order.

Emit immediate channel retarget updates whenever aggregate nominal hashrate changes during
downstream registration, downstream removal, or hashrate reconciliation. This keeps the
pool target aligned during connection churn, prevents local-only shares from being escalated
upstream, and leaves the submit limiter as a safety net instead of the steady-state control path.

Add regression coverage for shared target stability across multiple downstream opens, local
classification with distinct downstream targets, and immediate upstream retarget propagation.
@Fi3 Fi3 force-pushed the FixUpstreamRetarget branch from b60e744 to 1ab8e73 Compare May 6, 2026 12:03
@Fi3 Fi3 merged commit b9dc84c into dmnd-pool:master May 6, 2026
4 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.

1 participant