Skip to content

dgb: donation_consensus validation layer (Scrypt-only) — oracle-rebaselined - #125

Merged
frstrtr merged 1 commit into
masterfrom
dgb/donation-consensus
Jun 17, 2026
Merged

dgb: donation_consensus validation layer (Scrypt-only) — oracle-rebaselined#125
frstrtr merged 1 commit into
masterfrom
dgb/donation-consensus

Conversation

@frstrtr

@frstrtr frstrtr commented Jun 17, 2026

Copy link
Copy Markdown
Owner

DGB Phase B — donation_consensus port (re-landed off #116)

Namespace-only port of the consensus donation-validation surface from src/impl/ltc/donation_consensus.hpp into dgb::consensus. Recovered from the now-closed #116 chain and rebased onto current master (carries #121 share_check/share_tracker + #122 switch-oracle).

Oracle re-baseline (per integrator directive)

Donation script selection defers to dgb::PoolConfig::get_donation_script (config_pool.hpp, on master via #122):

  • v35 (share_version<36): forrestv P2PK 67B 4104ffd0... — DGB oracle frstrtr/p2pool-dgb-scrypt, IDENTIFIER 4B62545B1A631AFE
  • v36 (>=36): combined P2SH 1-of-2 (forrestv + maintainer)

Byte-verified the v35 constant in master config: 0x41 0x04 0xff 0xd0 ... 0xac = script hex 4104ffd0.... This is NOT a uniform v35 script and NOT the reverted farsider350 2-of-3 P2MS — stale comments referencing P2MS corrected in this commit.

Scope / parity

  • validate_donation_output / validate_coinbase_total / build_expected_payouts byte-parity with LTC reference logic
  • ShareTracker::get_expected_payouts signature identical
  • Header is share-version-agnostic; all consensus bytes live in config_pool.hpp (CoinParams-neutral)

GPG-signed. HOLD merge — integrator merges on operator approval.

Namespace-only port of the consensus donation-validation surface from
src/impl/ltc/donation_consensus.hpp into dgb::consensus. Stacks on the
share_check/share_tracker pillars (now on master via #121).

Script selection defers to dgb::PoolConfig::get_donation_script:
  v35 (share_version<36): forrestv P2PK 67B [4104ffd0...] (DGB oracle)
  v36 (>=36):             combined P2SH 1-of-2 (forrestv + maintainer)
SOURCE OF TRUTH is the DGB oracle frstrtr/p2pool-dgb-scrypt (switch-oracle,
Option B, landed #122), IDENTIFIER 4B62545B1A631AFE — NOT a uniform v35
script and NOT the reverted farsider350 2-of-3 P2MS. validate_donation_output
/ validate_coinbase_total / build_expected_payouts remain byte-parity with the
LTC reference logic; ShareTracker::get_expected_payouts signature is identical.
@frstrtr
frstrtr merged commit 7035158 into master Jun 17, 2026
17 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