Predicting the expected next proposer stopped working after upgrading from v0.34 to v0.37 #2422
Unanswered
outofforest
asked this question in
Q&A
Replies: 1 comment
-
Hi @outofforest Converting this into a discussion. We can convert back to issue later, if needed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We developed a metric allowing us to monitor validators who don't propose a block. To do that we compare expected proposer with the real one. Finding the real one is easy - it is the
ProposerAddress
field in the block.Finding the expected one is tricky. I did that by looking at
ProposerPriority
field of each validator stored in the previous block, according to the procedure described at https://docs.cometbft.com/v0.37/spec/consensus/proposer-selection.I'm assuming that the next validator is the one with the highest
ProposerPriority
. Here is the code:This logic served well, until we upgraded to v0.37. After that, our metric started reporting crazy data.
Has anything related to this algorithm changed in the past releases?
Beta Was this translation helpful? Give feedback.
All reactions