-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
consensus: more log grooming #6140
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6140 +/- ##
==========================================
+ Coverage 60.62% 60.69% +0.06%
==========================================
Files 276 276
Lines 25689 25703 +14
==========================================
+ Hits 15575 15601 +26
+ Misses 8488 8485 -3
+ Partials 1626 1617 -9
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹
@@ -715,28 +739,35 @@ func (cs *State) receiveRoutine(maxSteps int) { | |||
for { | |||
if maxSteps > 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This max steps argument is an interesting artefact of the consensus reactor. Was it used for testing or something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question, I'm not really sure but I'm too scared to make any legitimate changes to this code 😆
"proposer", cs.Validators.GetProposer().Address, | ||
"privValidator", cs.privValidator, | ||
"priv_validator", cs.privValidator, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was the issue from yesterday right. Do you think it might pay to instead print cs.privValidatorPubKey.Address()
or simply cs.privValidatorPubKey
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! Let me make a follow up PR :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -1955,11 +2047,10 @@ func (cs *State) addVote( | |||
switch vote.Type { | |||
case tmproto.PrevoteType: | |||
prevotes := cs.Votes.Prevotes(vote.Round) | |||
cs.Logger.Info("Added to prevote", "vote", vote, "prevotes", prevotes.StringShort()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't want each vote to come in to be info? I guess with 150 validators that can be quite overbearing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it's a lot. Keep in mind we can get multiple votes from multiple validators/peers multiple times per validator/peer. It can get pretty noisy!
ref: #5912