Skip to content

Commit

Permalink
chore(consensus): update logs in the state machine (#3112)
Browse files Browse the repository at this point in the history
  • Loading branch information
matan-starkware authored Jan 6, 2025
1 parent 35003e2 commit 471fd7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/sequencing/papyrus_consensus/src/state_machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ impl StateMachine {
where
LeaderFn: Fn(Round) -> ValidatorId,
{
trace!("Handling event: {:?}", event);
// Mimic LOC 18 in the paper; the state machine doesn't
// handle any events until `getValue` completes.
if self.awaiting_get_proposal {
Expand Down Expand Up @@ -202,6 +201,7 @@ impl StateMachine {
where
LeaderFn: Fn(Round) -> ValidatorId,
{
trace!("Processing event: {:?}", event);
if self.awaiting_get_proposal {
assert!(matches!(event, StateMachineEvent::GetProposal(_, _)), "{:?}", event);
}
Expand Down

0 comments on commit 471fd7e

Please sign in to comment.