Question regarding transactions with NLOCKTIME > 0



Summary:

When a transaction with N_LOCKTIME>0 is created, it won't be relayed until its locktime expires. The wallet holds onto the transaction until it can be confirmed into a block. nLockTime is designed in a way that you need to keep it offline until the locktime expires, then broadcast it and it will be mined and included in a block like a normal tx. This is why Peter Todd and others are working on CHECKLOCKTIMEVERIFY and RELATIVE CHECKLOCKTIMEVERIFY. These are enhancements to basic nLockTime which offers users the guarantee that if you have a transaction with nLockTime, the signer holding the private keys used to sign it cannot sign another one with nLockTime 0 and broadcast it before the locktime for your tx expires. If a transaction doesn't take effect for 10 years and is stored in a block, that block stays on the active list for that period of time.


Updated on: 2023-06-10T00:11:08.799923+00:00