From d01ad3f45414fb1f90aa546220b130535e412fc4 Mon Sep 17 00:00:00 2001 From: Chris Hyunhum Cho Date: Fri, 30 Aug 2024 16:20:04 +0900 Subject: [PATCH] fix: possible absolute locktime overflow error --- src/primitives/absolute_locktime.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/primitives/absolute_locktime.rs b/src/primitives/absolute_locktime.rs index e2373d781..db4624b3a 100644 --- a/src/primitives/absolute_locktime.rs +++ b/src/primitives/absolute_locktime.rs @@ -7,7 +7,7 @@ use core::{cmp, fmt}; use bitcoin::absolute; /// Maximum allowed absolute locktime value. -pub const MAX_ABSOLUTE_LOCKTIME: u32 = 0x8000_0000; +pub const MAX_ABSOLUTE_LOCKTIME: u32 = 0x7FFF_FFFF; /// Minimum allowed absolute locktime value. ///