Skip to content

dgb: port log-based PoolMonitor + wire into run_think (Phase B pool-layer) - #142

Closed
frstrtr wants to merge 2 commits into
dgb/whale-departurefrom
dgb/pool-monitor-port
Closed

dgb: port log-based PoolMonitor + wire into run_think (Phase B pool-layer)#142
frstrtr wants to merge 2 commits into
dgb/whale-departurefrom
dgb/pool-monitor-port

Conversation

@frstrtr

@frstrtr frstrtr commented Jun 17, 2026

Copy link
Copy Markdown
Owner

What

Port the log-based pool monitor (src/impl/dgb/pool_monitor.hpp) into the DGB pool layer, mirroring src/impl/ltc/pool_monitor.hpp (itself a port of p2pool-v36 monitor.py @d831a045). Wires it into NodeImpl::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 health

DGB divergence vs the LTC source

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).

Wiring

Runs in run_think() on a ~30s wall-clock cadence under the existing exclusive tracker lock, alongside the whale-departure detector. Completes the fmt_hashrate seam that whale_departure.hpp forward-references.

Scope / classification

  • Consensus-NEUTRAL: pure observability, no sharechain/consensus effect.
  • No edits to src/impl/bitcoin_family or src/core (consume-only).
  • 3-bucket: non-consensus heuristic, per-coin — not a standardization candidate.
  • c2pool-dgb single-coin build EXIT=0.

Stacked on #136 (dgb/whale-departure). HOLD merge — integrator merges on operator tap.

frstrtr added 2 commits June 17, 2026 21:04
…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.
@frstrtr

frstrtr commented Jun 18, 2026

Copy link
Copy Markdown
Owner Author

Superseded by #145 (DGB Phase-B batch land #132->#142, operator-approved merge-as-reviewed; content incl. this PR verified present in the batch). Landed to master via #145.

@frstrtr frstrtr closed this Jun 18, 2026
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