Difference between revisions of "NLockTime"

From Bitcoin Wiki
Jump to: navigation, search
(Specified that nLockTime is part of an input to a transaction.)
(Clarified the use of lock times.)
Line 1: Line 1:
 
{{stub}}
 
{{stub}}
  
nLockTime is a parameter that can be attached to an input to a transaction, that mandates a minimal time (specified in either unix time or block height), that before this time, the transaction cannot be accepted into a block.
+
nLockTime is a parameter of a transaction, that, if any input indicates so (by having nSequence not equal to UINT_MAX), mandates a minimal time (specified in either unix time or block height), that before this time, the transaction cannot be accepted into a block.  If all inputs have nSequence equal to UINT_MAX, then nLockTime is ignored.
  
 
See lock_time in [[Protocol_specification#tx|the protocol specification]]
 
See lock_time in [[Protocol_specification#tx|the protocol specification]]
  
 
[[Category:Technical]]
 
[[Category:Technical]]

Revision as of 01:57, 18 September 2016

Hashbtc.jpgThis page is a stub. Help by expanding it.

nLockTime is a parameter of a transaction, that, if any input indicates so (by having nSequence not equal to UINT_MAX), mandates a minimal time (specified in either unix time or block height), that before this time, the transaction cannot be accepted into a block. If all inputs have nSequence equal to UINT_MAX, then nLockTime is ignored.

See lock_time in the protocol specification