Export ProposerPriorityHash metric for divergence monitoring#3277
Open
wen-coding wants to merge 1 commit intomainfrom
Open
Export ProposerPriorityHash metric for divergence monitoring#3277wen-coding wants to merge 1 commit intomainfrom
wen-coding wants to merge 1 commit intomainfrom
Conversation
|
The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3277 +/- ##
=======================================
Coverage 59.31% 59.31%
=======================================
Files 2071 2071
Lines 169866 169891 +25
=======================================
+ Hits 100755 100770 +15
- Misses 60335 60346 +11
+ Partials 8776 8775 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Emit a pair of gauges every 1024 heights so operators can detect ProposerPriority divergence between validators by comparing hash values across nodes at the same height. Pack the first 6 bytes of the hash into a float64 to keep cardinality constant, and log the full 32-byte hash alongside for grep-based debugging. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
d5708e3 to
85388ae
Compare
philipsu522
approved these changes
Apr 21, 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.
Summary
tendermint_state_proposer_priority_hash: first 6 bytes of the hash packed into a float64 (48 bits fits in the float64 mantissa; constant cardinality of one series per node)tendermint_state_proposer_priority_hash_height: paired height so operators correlate samples taken at the same checkpointTest plan
go vet ./sei-tendermint/internal/state/...passesgo test ./sei-tendermint/internal/statepassesTestApplyBlockProposerPriorityHashapplies 1024 real blocks and verifies exactly one emission at the interval boundary, with the correct packed hash and height values