dash(s8): get_work() job-target assembly (pseudoshare modulation + SANE clip + job targets) - #549
Merged
Merged
Conversation
frstrtr
force-pushed
the
dash/s8-getwork-job-targets
branch
from
June 26, 2026 20:19
96afee2 to
294707b
Compare
…ANE clip + job targets
Author dash::stratum::{modulate_desired_pseudoshare_target, clip_to_sane,
assemble_work_job_targets} (work_job_targets.hpp) — the S8 follow-on the #545
desired_share_target modulation accessor explicitly deferred. Together they are
the full get_work() target arithmetic from the DASH oracle frstrtr/p2pool-dash
@9a0a609 work.py:368-426, as pure, header-only, socket-free accessors:
Pseudoshare modulation (work.py:368-374) None-path caps the vardiff target
to ~1 share/sec via
average_attempts_to_target(lhr*1).
SANE clip (work.py:380-393) math.clip into PARENT.SANE_TARGET_RANGE.
Job targets (work.py:411-426 ba dict) min_share_target = min(share bits,
SANE_TARGET_RANGE[1]); share_target =
the clipped pseudoshare target.
SANE_TARGET_RANGE added to dash::PoolConfig SSOT (config_pool.hpp,
sane_target_min/max) from oracle networks/dash.py:33 + dash_testnet.py:27.
Bucket-2 (v36_standardization_goal): the modulation+clip algorithm is the
protocol-universal shape that folds to a v37 unified work-source, authored as a
reusable accessor. Inputs (SANE_TARGET_RANGE) stay per-coin config SSOT — tuning
bounds, not isolation primitives.
SAFE-ADDITIVE, dash-only: new header + new KAT (test_dash_work_job_targets) wired
into the dash allowlist; no shared/core/other-coin source touched.
test_dash_work_job_targets: 9/9 green on Linux x86_64, every expected value
derived independently from the oracle integer formulas (true byte-parity pin).
frstrtr
force-pushed
the
dash/s8-getwork-job-targets
branch
from
June 26, 2026 22:03
294707b to
c7d77d7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
S8 get_work() wiring follow-on to PR #545. Authors the rest of the get_work() target arithmetic the #545 desired_share_target accessor deferred:
SANE_TARGET_RANGE added to dash::PoolConfig SSOT from oracle networks/dash.py:33 + dash_testnet.py:27.
Oracle: frstrtr/p2pool-dash @9a0a609 work.py:368-426. Bucket-2 (v36_standardization_goal): modulation+clip algorithm = protocol-universal accessor; SANE_TARGET_RANGE stays per-coin SSOT.
SAFE-ADDITIVE, dash-fenced: new header + new KAT only; no shared/core/other-coin source touched. test_dash_work_job_targets 9/9 green Linux x86_64, oracle-exact.
LAND ORDER (held): stacked on #545; do NOT merge before #545 taps+lands. After #545 lands, rebase onto master for an independent consensus-bearing tap. No self-merge.