Skip to content

Commit

Permalink
CRC: change wrapping_add to saturating_add
Browse files Browse the repository at this point in the history
Signed-off-by: Jacinta Ferrant <[email protected]>
  • Loading branch information
jferrant committed Dec 16, 2024
1 parent bedcf6c commit 86dc10f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stackslib/src/net/api/postblock_proposal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ impl RPCRequestHandler for RPCBlockProposalRequestHandler {
.block
.header
.timestamp
.wrapping_add(network.get_connection_opts().block_proposal_max_age_secs)
.saturating_add(network.get_connection_opts().block_proposal_max_age_secs)
< get_epoch_time_secs()
{
return Err((
Expand Down

0 comments on commit 86dc10f

Please sign in to comment.