Skip to content

dgb(G1): oracle byte-parity KAT — net/consensus constants + isolation primitives - #384

Merged
frstrtr merged 1 commit into
masterfrom
dgb/g1-oracle-byte-parity
Jun 23, 2026
Merged

dgb(G1): oracle byte-parity KAT — net/consensus constants + isolation primitives#384
frstrtr merged 1 commit into
masterfrom
dgb/g1-oracle-byte-parity

Conversation

@frstrtr

@frstrtr frstrtr commented Jun 23, 2026

Copy link
Copy Markdown
Owner

FENCED greenlight-gate G1 artifact (test-only, no production code touched).

Pins the assembled make_coin_params() output for both nets against literals hand-transcribed from the DGB oracle frstrtr/p2pool-dgb-scrypt (networks/digibyte.py, bitcoin/p2p.py). Non-circular: the expected side is typed from oracle source, not a second read of the same C++ SUT constant — so a silent drift in config_coin.hpp/config_pool.hpp reds here even though every other dgb test (same constant on both sides) stays green.

Coverage (5/5 local green)

  • mainnet net/consensus constants: P2P 5024 / worker 5025, addr-version 30 / p2sh 63, share_period 15, chain_length 2880, spread 24, lookbehind 100, min-proto 1700, advertised-proto 3501, segwit-act 35, dust 100000
  • bucket-1 isolation primitives PREFIX 1c0553f23ebfcffe / IDENTIFIER 4b62545b1a631afe — guarded against accidental standardization (3-bucket rule); both nets share them
  • MAX_TARGET == 2^236-1
  • testnet address-version divergence with shared isolation primitives
  • donation version gate (pre-v36 P2PK 67B / v36 combined P2SH 23B)

Registered in dgb test CMakeLists + both build.yml --target allowlist arms (#143 guard). No self-merge.

…on primitives

FENCED greenlight-gate G1 artifact (test-only, no production code touched).
Pins the assembled make_coin_params() output for both nets against literals
hand-transcribed from the DGB oracle frstrtr/p2pool-dgb-scrypt (digibyte.py /
p2p.py), non-circular: expected side is typed from oracle source, not a second
read of the same C++ SUT constant.

Coverage:
- mainnet net/consensus constants (ports, address versions, share_period,
  chain_length, spread, lookbehind, min/advertised proto, segwit-act, dust)
- bucket-1 isolation primitives PREFIX/IDENTIFIER (guarded against accidental
  standardization; both nets share them)
- MAX_TARGET == 2^236-1
- testnet address-version divergence with shared isolation primitives
- donation script version gate (pre-v36 P2PK 67B / v36 combined P2SH 23B)

Registered in dgb test CMakeLists + both build.yml --target allowlist arms.
5/5 local green.
@frstrtr
frstrtr force-pushed the dgb/g1-oracle-byte-parity branch from e6fbbf7 to b1ee0c3 Compare June 23, 2026 18:40
@frstrtr
frstrtr merged commit 27bd1a6 into master Jun 23, 2026
32 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