Skip to content

Commit

Permalink
Fix lint bug
Browse files Browse the repository at this point in the history
  • Loading branch information
elliedavidson committed Sep 22, 2023
1 parent c248d2e commit bb0eb5f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
6 changes: 5 additions & 1 deletion crates/task-impls/src/consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -673,9 +673,13 @@ where
return;
};

if timeout_cert.view_number != view - 1 {
warn!("Timeout certificate for view {} was not for the immediately preceding view", *view);
}

if !self
.timeout_exchange
.is_valid_cert(&timeout_cert.clone(), view.commit())
.is_valid_cert(&timeout_cert.clone(), timeout_cert.view_number.commit())
{
warn!("Timeout certificate for view {} was invalid", *view);
return;
Expand Down
1 change: 0 additions & 1 deletion crates/task-impls/src/da.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ where
&vote.block_commitment,
) {
Left(new_accumulator) => {
error!("Not enough DA votes yet");
state.accumulator = either::Left(new_accumulator);
}

Expand Down
4 changes: 0 additions & 4 deletions crates/task-impls/src/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,6 @@ impl<
},
Either::Right(committee_message) => match committee_message {
CommitteeConsensusMessage::DAProposal(proposal) => {
error!(
"Received da proposal for view {:?}",
proposal.clone().data.view_number
);
SequencingHotShotEvent::DAProposalRecv(proposal.clone(), sender)
}
CommitteeConsensusMessage::DAVote(vote) => {
Expand Down
5 changes: 4 additions & 1 deletion crates/types/src/traits/election.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,10 @@ pub trait ConsensusExchange<TYPES: NodeType, M: NetworkMsg>: Send + Sync {
let leaf_commitment = qc.leaf_commitment();

if leaf_commitment != commit {
error!("Leaf commitment does not equal parent commitment");
error!(
"Leaf commitment does not equal parent commitment {:?}",
qc.signatures()
);
return false;
}

Expand Down

0 comments on commit bb0eb5f

Please sign in to comment.