Skip to content

Commit

Permalink
Change commenting style
Browse files Browse the repository at this point in the history
  • Loading branch information
George Danezis committed May 3, 2022
1 parent 1ddfcf3 commit 9f2b61e
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions sui_core/src/safe_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,22 +189,20 @@ impl<C> SafeClient<C> {
.check(&signed_batch.batch, signed_batch.authority)?;

// ensure transactions enclosed match requested range
/*

TODO: check that the batch is within bounds given that the
bounds may now not be known by the requester.
if let Some(start) = &request.start {
fp_ensure!(
signed_batch.batch.initial_sequence_number >= *start
&& signed_batch.batch.next_sequence_number
<= (*start + request.length + signed_batch.batch.size),
SuiError::ByzantineAuthoritySuspicion {
authority: self.address
}
);
}
*/
// TODO: check that the batch is within bounds given that the
// bounds may now not be known by the requester.
//
// if let Some(start) = &request.start {
// fp_ensure!(
// signed_batch.batch.initial_sequence_number >= *start
// && signed_batch.batch.next_sequence_number
// <= (*start + request.length + signed_batch.batch.size),
// SuiError::ByzantineAuthoritySuspicion {
// authority: self.address
// }
// );
// }

// If we have seen a previous batch, use it to make sure the next batch
// is constructed correctly:
Expand Down

0 comments on commit 9f2b61e

Please sign in to comment.