BIP68: fix wrong upper bound for nHeight

This commit is contained in:
pythcoiner committed 2026-05-28 16:11:57 +02:00
1 parent 76d434e5fc
commit 6ac8c26870
1 file changed
+1 -1
+1 -1
View File
@@ -240,7 +240,7 @@ Additionally, this BIP specifies only 16 bits to actually encode relative lock-t
The most efficient way to calculate sequence number from relative lock-time is with bit masks and shifts:
<pre>
// 0 <= nHeight < 65,535 blocks (1.25 years)
// 0 <= nHeight <= 65,535 blocks (1.25 years)
nSequence = nHeight;
nHeight = nSequence & 0x0000ffff;