Skip to content

Commit 409374a

Browse files
committed
Merge #731: fix: possible absolute locktime overflow error
d01ad3f fix: possible absolute locktime overflow error (Chris Hyunhum Cho) Pull request description: Maximum absolute locktime is 2^31 - 1, not 2^31 in miniscript. reference: https://github.com/bitcoin/bitcoin/blob/master/src/script/miniscript.h#L2281 ACKs for top commit: apoelstra: ACK d01ad3f successfully ran local tests Tree-SHA512: cde3ea0b0ed4cfc4b30cc8ff3b2da33241581a5ea55849e61d17d7b2788028e666dd7047be5450dc73a14dba25f52b982da8eae6818902439cd1f5b892730bb9
2 parents 4490289 + d01ad3f commit 409374a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/primitives/absolute_locktime.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use core::{cmp, fmt};
77
use bitcoin::absolute;
88

99
/// Maximum allowed absolute locktime value.
10-
pub const MAX_ABSOLUTE_LOCKTIME: u32 = 0x8000_0000;
10+
pub const MAX_ABSOLUTE_LOCKTIME: u32 = 0x7FFF_FFFF;
1111

1212
/// Minimum allowed absolute locktime value.
1313
///

0 commit comments

Comments
 (0)