You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(starfish-core): simplify misbehavior classification and tighten gauge updates
Address pending review comments on PR #11531:
- Drop `ErrorSource` enum and `classify_for_source`. With Provable-stays-
Provable across all sources, the only source-specific case was the
Subscriber's `UnexpectedAuthority` mapping; fold it into
`classify_block_header_error` so every classifier path goes through one
function. `record_faulty_block_header` no longer takes a source argument.
- Pass `context: &Context` to `record_faulty_block_header` and bump the
in_memory gauges (`faulty_blocks_provable_by_authority`,
`faulty_blocks_unprovable_by_peer` with `source="in_memory"`) on every
recorded fault. `flush_faulty_block_header_buffer` resets them to zero,
matching the existing pattern for missing_proposals and equivocations.
- Drop the verify_fetched_headers recording in commit_syncer fast/regular
paths — those errors are fetch-shape and classify as Untracked today.
Replace with TODO pointing at the recording entry point for when
per-header faults become observable there.
- Move `misbehavior_store.reset()` to step 1 of `reinitialize` alongside
the other in-memory cache clears.
0 commit comments