Skip to content

dgb: make_coin_params factory (params.hpp) — Scrypt-only, oracle-sourced - #129

Merged
frstrtr merged 1 commit into
masterfrom
dgb/params-factory
Jun 17, 2026
Merged

dgb: make_coin_params factory (params.hpp) — Scrypt-only, oracle-sourced#129
frstrtr merged 1 commit into
masterfrom
dgb/params-factory

Conversation

@frstrtr

@frstrtr frstrtr commented Jun 17, 2026

Copy link
Copy Markdown
Owner

Adds src/impl/dgb/params.hpp: dgb::make_coin_params(testnet) building a populated core::CoinParams for the DGB-Scrypt parent chain — the struct that flows through the modern share_check/tracker stack.

Consensus-neutral by construction: NO hardcoded consensus bytes in this file. Every consensus-critical value derives from the SSOT static members of dgb::CoinParams (config_coin.hpp) and dgb::PoolConfig (config_pool.hpp), so there is exactly one place a DGB constant can drift.

Oracle source: frstrtr/p2pool-dgb-scrypt (switch-oracle / Option B, operator 2026-06-17). IDENTIFIER 4b62545b1a631afe, PREFIX 1c0553f23ebfcffe, P2P 5024, minproto floor 1700, softforks csv+segwit, version-gated donation (v35 forrestv P2PK 4104ffd0… / v36 combined P2SH).

Scope: single-coin — touches ONLY src/impl/dgb/params.hpp. No src/impl/bitcoin_family/ or src/core/ delta.

Three non-consensus fields carry [confirm-vs-oracle] markers (address_p2sh_version2 legacy parse-leniency, dust_threshold relay policy, worker_port stratum default) — operator-overridable, flagged not guessed.

HOLD merge for integrator gate (CI-green + operator approval).

Builds a fully populated core::CoinParams for the DigiByte-Scrypt p2pool
parent chain. Holds zero hardcoded consensus bytes: every consensus-critical
value is sourced from the single-source-of-truth static members of
dgb::CoinParams (config_coin.hpp) and dgb::PoolConfig (config_pool.hpp).

Sourced from the DGB oracle frstrtr/p2pool-dgb-scrypt (switch-oracle / Option B):
IDENTIFIER 4b62545b1a631afe, PREFIX 1c0553f23ebfcffe, P2P 5024, minproto floor
1700, softforks csv+segwit, version-gated donation (v35 forrestv P2PK / v36 P2SH).

Single-coin scope: touches only src/impl/dgb/.
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