HomePhabricator

Replace NOP2 with CHECKLOCKTIMEVERIFY (BIP65)
bc60b2b4b401Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Replace NOP2 with CHECKLOCKTIMEVERIFY (BIP65)

<nLockTime> CHECKLOCKTIMEVERIFY -> <nLockTime>

Fails if tx.nLockTime < nLockTime, allowing the funds in a txout to be
locked until some block height or block time in the future is reached.

Only the logic and unittests are implemented; this commit does not have
any actual soft-fork logic in it.

Thanks to Pieter Wuille for rebase.

Credit goes to Gregory Maxwell for the suggestion of comparing the
argument against the transaction nLockTime rather than the current
time/blockheight directly.

Details

Provenance
Peter Todd <pete@petertodd.org>Authored on Sep 29 2014, 07:44
deadalnixPushed on May 14 2017, 22:04
Parents
rABC48e9c57cf063: Move LOCKTIME_THRESHOLD to src/script/script.h
Branches
Unknown
Tags
Unknown

Event Timeline

Peter Todd <pete@petertodd.org> committed rABCbc60b2b4b401: Replace NOP2 with CHECKLOCKTIMEVERIFY (BIP65) (authored by Peter Todd <pete@petertodd.org>).Jun 22 2015, 03:56