dgb: port log-based PoolMonitor + wire into run_think (Phase B pool-layer) - #142
Closed
frstrtr wants to merge 2 commits into
Closed
dgb: port log-based PoolMonitor + wire into run_think (Phase B pool-layer)#142frstrtr wants to merge 2 commits into
frstrtr wants to merge 2 commits into
Conversation
…ayer) Port p2pool-v36 monitor.py (commit d831a045) into src/impl/dgb/pool_monitor.hpp, mirroring src/impl/ltc/pool_monitor.hpp. Emits grep-friendly [MONITOR-*] log lines (hashrate spike/drop, per-address work concentration, share-gap/emergency decay, difficulty anomaly, summary). Consensus-NEUTRAL: pure observability, no sharechain/consensus effect. DGB divergence vs the LTC source is the address encoder only: the LTC version used the is_litecoin convenience overload (litecoin/bitcoin-only). DGB passes explicit Base58/bech32 version bytes from CoinParams via the 4-arg core::script_to_address overload (D/S prefixes, dgb/dgbt HRP). Wired into NodeImpl::run_think() on a ~30s wall-clock cadence under the existing exclusive tracker lock, alongside the whale-departure detector. Completes the fmt_hashrate seam whale_departure.hpp forward-references. No edits to src/impl/bitcoin_family or src/core (consume-only). c2pool-dgb single-coin build EXIT=0.
This was referenced Jun 18, 2026
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.
What
Port the log-based pool monitor (
src/impl/dgb/pool_monitor.hpp) into the DGB pool layer, mirroringsrc/impl/ltc/pool_monitor.hpp(itself a port of p2pool-v36monitor.py@d831a045). Wires it intoNodeImpl::run_think().Emits grep-friendly
[MONITOR-*]log lines:[MONITOR-HASHRATE]spike/drop vs 1h moving avg[MONITOR-CONC]per-address work concentration (short/medium/full windows)[MONITOR-EMERGENCY]share-gap / emergency-decay[MONITOR-DIFF]difficulty anomaly[MONITOR-SUMMARY]one-line healthDGB divergence vs the LTC source
Address encoder only. The LTC version used the
is_litecoinconvenience overload (litecoin/bitcoin-only). DGB passes explicit Base58/bech32 version bytes fromCoinParamsvia the 4-argcore::script_to_addressoverload (D/S prefixes, dgb/dgbt HRP).Wiring
Runs in
run_think()on a ~30s wall-clock cadence under the existing exclusive tracker lock, alongside the whale-departure detector. Completes thefmt_hashrateseam thatwhale_departure.hppforward-references.Scope / classification
src/impl/bitcoin_familyorsrc/core(consume-only).c2pool-dgbsingle-coin build EXIT=0.Stacked on #136 (dgb/whale-departure). HOLD merge — integrator merges on operator tap.