8

My search on this website did not reveal a single answer that comprehensively explores nSequence and how it has evolved since inception. They either address a particular query or are dated like this. If you can find a better/older answer, mark this question as duplicate. Original meaning of nSequence in transactions nSequence is a 4 byte input level ...


4

This is because CSV and CLTV are NOP opcodes that were redefined in a softfork. As a softfork can only change the validity of transactions from valid to invalid, the only effect this redefinition was allowed to have is making the script abort in some conditions, and keep acting like NOP otherwise. NOP does not pop anything off the stack, and as a result, ...


1

The failure is happening because hash160(30450221009b813cf658ec2c30e68fd23c369c348fd5f915f77b49581a945aa2f2f2d3c8aa022058f6a7eb78b2132d24cc260699fdc158fda6f3a0d10bc3c52bacccc03bb6b8cb) is not 023fb59ee7e5722a9c559d366f6ca114c73361108c04e27a18060cef7a727d58a9. Hash160s are 160 bits long, ending up as 40 hex chars. 023fb... above is 66 chars, so no hash160 ...


1

Anthony Towns' recent draft uses CLTV, which also uses nLocktime.


1

i manage to find answer for myself. OP_CSV date consensus is based on median time past (mtp), not block's confirmed date. once funding tx above has been confirmed, it is located in block#1609592 with block MTP is 2019-11-24 09:05:26 (UTC 0). At same time, chain's MTP is 2019-11-24 09:25:27 (UTC 0) now come to spending tx, since utxo's confirmed date i ...


1

The sequence number is always 4 bytes, it is a fixed size, little endian, 32 bit integer which makes it always 4 bytes. What you are missing is the scriptSig. The scriptSig always begins with the size of the script (as a compact size unsigned integer). If the scriptSig is empty, then the size must still be there to say that it is a 0 length byte. So the ...


1

If you look at https://blockstream.info/address/bc1qdv0fk4c73fem89s708pzdny8q25d7k5nrckckp87c8alwaw803fq3mqrpz you will see that there are two transactions. The first one https://blockstream.info/tx/943f18e17aa2ba716f2d13785268a1bd6b25c39d2718f3b4785559a5eeaba883 is the funding TX to open the payment channel included in block 587093 (at least according to ...


1

The error gets resolved when I use OP_10 instead of 030a0000 to push the number 10 on the stack. It appears that the bitcoin optimizes the size of the scripts. So to push any number from 2 to 16, OP_2 - OP_16 should be used and for numbers greater than 16 we should give minimum required bytes in the script. E.g. OP_10 (5a) -> Correct 01 0a -> non-...


1

Note: Although this answer is written for testnet, it is absolutely valid for the mainnet as well. The script will be similar, just the address encoding will be different (P2PKH start with 1 vs m for testnet as we use 0x00 as prefix in address base58check in mainnet). I tried to make transaction with Locktime on bitcoin testnet. I am not able to broadcast ...


Only top voted, non community-wiki answers of a minimum length are eligible