Merge pull request #2178 from pythcoiner/bip_68
Some checks are pending
GitHub Actions Check / Link-Format-Checks (push) Waiting to run
GitHub Actions Check / Build-Table-Checks (push) Waiting to run
GitHub Actions Check / Diff Checks (fails until number assignment) (push) Waiting to run
GitHub Actions Check / Typo Checks (push) Waiting to run
Some checks are pending
GitHub Actions Check / Link-Format-Checks (push) Waiting to run
GitHub Actions Check / Build-Table-Checks (push) Waiting to run
GitHub Actions Check / Diff Checks (fails until number assignment) (push) Waiting to run
GitHub Actions Check / Typo Checks (push) Waiting to run
BIP68: fix wrong upper bound for nHeight
This commit is contained in:
commit
790c777aeb
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user