Skip to content

dgb: delegate diagnostic lookbehind clamps onto chain_walk_window SSOT (#423 follow-on) - #519

Merged
frstrtr merged 1 commit into
masterfrom
dgb/chain-walk-window-diag-rewire
Jun 26, 2026
Merged

dgb: delegate diagnostic lookbehind clamps onto chain_walk_window SSOT (#423 follow-on)#519
frstrtr merged 1 commit into
masterfrom
dgb/chain-walk-window-diag-rewire

Conversation

@frstrtr

@frstrtr frstrtr commented Jun 26, 2026

Copy link
Copy Markdown
Owner

What

Follow-on byte-identity rewire for the merged #423 chain_walk_window SSOT. Delegates the three diagnostic-path lookbehind clamps in share_tracker.hpp onto dgb::chain_walk_window_count / dgb::chain_walk_window_active:

  • get_average_stale_prop (efficiency diag)
  • get_stale_counts (efficiency diag)
  • get_desired_version_counts (flat-count, diag/KAT only)

Scope split (per integrator observation-only confirm, UID2552)

The consensus-bearing get_desired_version_weights clamp — which feeds the check()-phase 60%-by-work v36 switch gate (share_check step 2) — is LEFT inline and parked for a separate operator-surfaced tap. This slice cannot alter any number a peer computes for share or chain acceptance.

Byte-identity

Helper returns the same std::min(lookbehind, height) and the same actual > 0 walk-activation guard; the static_cast<int32_t> stays at the call site exactly as before.

  • dgb_chain_walk_window_test 5/5 (incl. DelegationMatchesPreDelegationInline)
  • dgb_share_test 34/34

FENCED to src/impl/dgb/. NO self-merge.

#423 follow-on)

Rewire the three DIAGNOSTIC-path lookbehind clamps in share_tracker.hpp
(get_average_stale_prop, get_stale_counts, get_desired_version_counts
flat-count) onto dgb::chain_walk_window_count / chain_walk_window_active
(coin/chain_walk_window.hpp). Byte-identical: the helper returns the same
std::min(lookbehind, height) value and the same (actual > 0) walk-activation
guard; the static_cast<int32_t> stays at the call site exactly as before.

The CONSENSUS-bearing get_desired_version_weights clamp (feeds the
check()-phase 60%-by-work v36 switch gate, share_check step 2) is LEFT inline
this slice and parked for a separate operator-surfaced tap, per the
observation-only scope split.

dgb_chain_walk_window_test 5/5 (incl. DelegationMatchesPreDelegationInline),
dgb_share_test 34/34.
@frstrtr
frstrtr merged commit 0c30adf into master Jun 26, 2026
32 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