Skip to content

dgb(test): pin pool/share-layer params to p2pool-dgb-scrypt oracle - #161

Merged
frstrtr merged 1 commit into
masterfrom
dgb/pool-share-oracle-guard
Jun 18, 2026
Merged

dgb(test): pin pool/share-layer params to p2pool-dgb-scrypt oracle#161
frstrtr merged 1 commit into
masterfrom
dgb/pool-share-oracle-guard

Conversation

@frstrtr

@frstrtr frstrtr commented Jun 18, 2026

Copy link
Copy Markdown
Owner

Phase B pool/share conformance slice.

Audit: diffed the DGB pool/share constant + tracker score-period layer against the frstrtr/p2pool-dgb-scrypt oracle (networks/digibyte.py + bitcoin/networks/digibyte.py) as ground truth. Result: full conformance — no production code change needed.

Change: lock the previously-unguarded params in share_test.cpp (drift guard). New OraclePoolShareLayer test pins:

  • SPREAD=24, TARGET_LOOKBEHIND=100, REAL_CHAIN_LENGTH=2880
  • BLOCK_MAX_SIZE=32000000, BLOCK_MAX_WEIGHT=128000000
  • CoinParams::BLOCK_PERIOD=75 (PARENT.BLOCK_PERIOD — tracker score() denominator)
  • MAX_TARGET = 2256//220 - 1 = 2^236-1

Scope: test-only, single-coin, strictly inside src/impl/dgb/test/. No bitcoin_family/ / src/core/ / CMake / build.yml touch (target dgb_share_test already in both allowlists). Local: build EXIT=0, dgb_share_test 6/6 PASS.

HOLD merge — integrator merges on operator approval.

Phase B conformance: audited the DGB pool/share constant + tracker
score-period layer against the frstrtr/p2pool-dgb-scrypt oracle
(networks/digibyte.py + bitcoin/networks/digibyte.py) and confirmed
full conformance. Lock the previously-unguarded params against drift in
share_test.cpp (target already in both build.yml allowlists):

  SPREAD=24, TARGET_LOOKBEHIND=100, REAL_CHAIN_LENGTH=2880,
  BLOCK_MAX_SIZE=32000000, BLOCK_MAX_WEIGHT=128000000,
  CoinParams::BLOCK_PERIOD=75 (PARENT.BLOCK_PERIOD, tracker score() denom),
  MAX_TARGET = 2**256//2**20 - 1 = 2^236-1.

Test-only, single-coin, strictly inside src/impl/dgb/test/. No shared
base / bitcoin_family / src/core touched. dgb_share_test 6/6 PASS.
@frstrtr
frstrtr merged commit 5febc12 into master Jun 18, 2026
16 checks passed
@frstrtr
frstrtr deleted the dgb/pool-share-oracle-guard branch June 18, 2026 22:08
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