Skip to content

Commit

Permalink
added logging for epoch debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronvoell committed Aug 7, 2024
1 parent 9cb3207 commit fb5fba3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openmls/src/group/public_group/validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,14 @@ impl PublicGroup {
message.epoch(),
self.group_context().epoch()
);
println!("message.epoch() {} > {} self.group_context().epoch()", message.epoch(), self.group_context().epoch());
return Err(ValidationError::WrongEpoch);
}
}
// For all other messages we only only accept the current epoch
_ => {
if message.epoch() != self.group_context().epoch() {
println!("message.epoch() {} != {} self.group_context().epoch()", message.epoch(), self.group_context().epoch());
log::error!(
"Wrong Epoch: message.epoch() {} != {} self.group_context().epoch()",
message.epoch(),
Expand Down

0 comments on commit fb5fba3

Please sign in to comment.