The sequence 004001fa
(big-endian, padded to 4 bytes) truly represents a relative locktime of 259,072 seconds, nearly precisely 3 days.
The way in which you interpret a sequence quantity as a relative locktime (as laid out in BIP68) is as follows:
- Verify if the very best bit is about, if that’s the case then no locktime applies.
- Interpret the bottom 16 bits as an unsigned integer, and:
- If bit 22 will not be set, this worth is the locktime in blocks.
- If bit 22 is about, multiply this worth by 512 and also you get the locktime in seconds.
Now, let’s take a look at the sequence 004001fa
in binary, with the related bits highlighted:
0000 0000 0100 0000 0000 0001 1111 1010
^ ^ ^^^^^^^^^^^^^^^^^^^
For the reason that highest bit will not be set, bit 22 is about, and the bottom 16 bits give the quantity 506 (111111010 in binary, 1fa in hexadecimal), the locktime is 506 × 512 = 259,072 seconds.
The sequence 004001fa
(big-endian, padded to 4 bytes) truly represents a relative locktime of 259,072 seconds, nearly precisely 3 days.
The way in which you interpret a sequence quantity as a relative locktime (as laid out in BIP68) is as follows:
- Verify if the very best bit is about, if that’s the case then no locktime applies.
- Interpret the bottom 16 bits as an unsigned integer, and:
- If bit 22 will not be set, this worth is the locktime in blocks.
- If bit 22 is about, multiply this worth by 512 and also you get the locktime in seconds.
Now, let’s take a look at the sequence 004001fa
in binary, with the related bits highlighted:
0000 0000 0100 0000 0000 0001 1111 1010
^ ^ ^^^^^^^^^^^^^^^^^^^
For the reason that highest bit will not be set, bit 22 is about, and the bottom 16 bits give the quantity 506 (111111010 in binary, 1fa in hexadecimal), the locktime is 506 × 512 = 259,072 seconds.