dgb: RE-LAND sharechain verify+tracker (recover orphaned #116 slice-2) - #121
Merged
Conversation
…rypt-only Phase B pool-layer slice 2. Ports ltc share_check.hpp (3307L) and share_tracker.hpp (2814L) into the dgb namespace. Divergence from src/impl/ltc is namespace-only (ltc -> dgb) EXCEPT one consensus constant: parent block-period score window uses DGB BLOCK_PERIOD = 15s (farsider350 digibyte.py:21) vs LTC 150s. SHARE_PERIOD (25), CHAIN_LENGTH/REAL_CHAIN_LENGTH (8640) already match farsider350 via config_pool.hpp PoolConfig accessors — no further divergence. Formatter / wire layout byte-parity with p2pool-merged-v36 preserved. DOGE-aux merged-mining verify paths carried verbatim, dormant in the default (no -DAUX_DOGE) build; parent-target semantics now = DGB-Scrypt. Header-only pillars, not yet wired into node.hpp (later slice), mirroring prior slices. Verified: standalone -fsyntax-only error set is byte-identical to the upstream ltc header (pre-existing consumer-provided include order).
Standalone-include fix mirroring btc/share-tracker-cstdint: mul128_shift uses uint64_t but relied on transitive <cstdint>. Make the dependency explicit so the header is self-contained when the OBJECT-lib wiring compiles it directly.
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.
Recovers commit 534aa5f (share_check + share_tracker), orphaned when #116 auto-closed unmerged after its base branch dgb/pool-layer-port was --delete-branch'd on the #115 merge. Re-landed on current master (now contains #112 + #115).
Commits
Oracle reconciliation (per integrator request)
Verified share_check/share_tracker against the new DGB oracle (frstrtr/p2pool-dgb-scrypt):
Status