diff options
| author | Peter Todd <[email protected]> | 2014-09-29 03:44:25 -0400 |
|---|---|---|
| committer | Peter Todd <[email protected]> | 2015-06-21 23:56:28 -0400 |
| commit | bc60b2b4b401f0adff5b8b9678903ff8feb5867b (patch) | |
| tree | 07c94b39b1fa36c942112dff9085cd870acf3d1a /src/script/script.h | |
| parent | Move LOCKTIME_THRESHOLD to src/script/script.h (diff) | |
| download | discoin-bc60b2b4b401f0adff5b8b9678903ff8feb5867b.tar.xz discoin-bc60b2b4b401f0adff5b8b9678903ff8feb5867b.zip | |
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.
Diffstat (limited to 'src/script/script.h')
| -rw-r--r-- | src/script/script.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/script/script.h b/src/script/script.h index 45a06acc9..be2a57c3b 100644 --- a/src/script/script.h +++ b/src/script/script.h @@ -154,6 +154,7 @@ enum opcodetype // expansion OP_NOP1 = 0xb0, OP_NOP2 = 0xb1, + OP_CHECKLOCKTIMEVERIFY = OP_NOP2, OP_NOP3 = 0xb2, OP_NOP4 = 0xb3, OP_NOP5 = 0xb4, |