Skip to content

Commit 86dc10f

Browse files
committed
CRC: change wrapping_add to saturating_add
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent bedcf6c commit 86dc10f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stackslib/src/net/api/postblock_proposal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ impl RPCRequestHandler for RPCBlockProposalRequestHandler {
747747
.block
748748
.header
749749
.timestamp
750-
.wrapping_add(network.get_connection_opts().block_proposal_max_age_secs)
750+
.saturating_add(network.get_connection_opts().block_proposal_max_age_secs)
751751
< get_epoch_time_secs()
752752
{
753753
return Err((

0 commit comments

Comments
 (0)