From 86dc10f0fd432f32db38a6f11e8791fc97042676 Mon Sep 17 00:00:00 2001 From: Jacinta Ferrant Date: Mon, 16 Dec 2024 15:16:38 -0500 Subject: [PATCH] CRC: change wrapping_add to saturating_add Signed-off-by: Jacinta Ferrant --- stackslib/src/net/api/postblock_proposal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stackslib/src/net/api/postblock_proposal.rs b/stackslib/src/net/api/postblock_proposal.rs index 102e0a429a..f3d9b18798 100644 --- a/stackslib/src/net/api/postblock_proposal.rs +++ b/stackslib/src/net/api/postblock_proposal.rs @@ -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((