Skip to content

Conversation

btcdrak
Copy link
Contributor

@btcdrak btcdrak commented Feb 16, 2016

Backports #7524 for 0.12

maaku and others added 3 commits February 16, 2016 21:12
- Replace NOP3 with CHECKSEQUENCEVERIFY (BIP112)
  <nSequence> CHECKSEQUENCEVERIFY -> <nSequence>
- Fails if txin.nSequence < nSequence, allowing funds of a txout to be locked for a number of blocks or a duration of time after its inclusion in a block.
- Pull most of CheckLockTime() out into VerifyLockTime(), a local function that will be reused for CheckSequence()
- Add bitwise AND operator to CScriptNum
- Enable CHECKSEQUENCEVERIFY as a standard script verify flag
- Transactions that fail CSV verification will be rejected from the mempool, making it easy to test the feature. However blocks containing "invalid" CSV-using transactions will still be accepted; this is *not* the soft-fork required to actually enable CSV for production use.
For the sake of a little repetition, make code more readable.
This if statement is a little obtuse and using braces here
improves readability.
@btcdrak
Copy link
Contributor Author

btcdrak commented Mar 15, 2016

Closing for 7543

@btcdrak btcdrak closed this Mar 15, 2016
@btcdrak btcdrak deleted the dot12_backport_bip112 branch December 3, 2016 10:56
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants