public inbox for bitcoindev@googlegroups.com
 help / color / mirror / Atom feed
* [bitcoin-dev] BIP 68 (Relative Locktime) bug
@ 2015-07-05 15:00 Tom Harding
  2015-07-05 16:17 ` Mark Friedenbach
  2015-07-05 17:07 ` Mark Friedenbach
  0 siblings, 2 replies; 7+ messages in thread
From: Tom Harding @ 2015-07-05 15:00 UTC (permalink / raw)
  To: bitcoin-dev

BIP 68 uses nSequence to specify relative locktime, but nSequence also
continues to condition the transaction-level locktime.

This dual effect will prevent a transaction from having an effective
nLocktime without also requiring at least one of its inputs to be mined
at least one block (or one second) ahead of its parent.

The fix is to shift the semantics so that nSequence = MAX_INT - 1
specifies 0 relative locktime, rather than 1.  This change will also
preserve the semantics of transactions that have already been created
with the specific nSequence value MAX_INT - 1 (for example all
transactions created by the bitcoin core wallet starting in 0.11).




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-07-05 19:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-05 15:00 [bitcoin-dev] BIP 68 (Relative Locktime) bug Tom Harding
2015-07-05 16:17 ` Mark Friedenbach
2015-07-05 16:21   ` Pieter Wuille
2015-07-05 16:25   ` Tom Harding
2015-07-05 17:07 ` Mark Friedenbach
2015-07-05 19:50   ` Tom Harding
2015-07-05 19:57     ` Tom Harding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox