dgb(G1): oracle byte-parity KAT — net/consensus constants + isolation primitives - #384
Merged
Conversation
…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
force-pushed
the
dgb/g1-oracle-byte-parity
branch
from
June 23, 2026 18:40
e6fbbf7 to
b1ee0c3
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.
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 inconfig_coin.hpp/config_pool.hppreds here even though every other dgb test (same constant on both sides) stays green.Coverage (5/5 local green)
1c0553f23ebfcffe/ IDENTIFIER4b62545b1a631afe— guarded against accidental standardization (3-bucket rule); both nets share themRegistered in dgb test CMakeLists + both build.yml
--targetallowlist arms (#143 guard). No self-merge.