Backport BIP112 implementation for 0.12 #7544

pull btcdrak wants to merge 3 commits into bitcoin:0.12 from btcdrak:dot12_backport_bip112 changing 8 files +248 −3
  1. btcdrak commented at 9:13 PM on February 16, 2016: contributor

    Backports #7524 for 0.12

    • Depends on #7543 being merged.
  2. BIP112: Implement CHECKSEQUENCEVERIFY
    - 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.
    88158957e2
  3. Separate CheckLockTime() and CheckSequence() logic
    For the sake of a little repetition, make code more readable.
    db9a536137
  4. Code style fix.
    This if statement is a little obtuse and using braces here
    improves readability.
    c4d643677a
  5. jonasschnelli added the label TX fees and policy on Feb 19, 2016
  6. jonasschnelli added the label Mempool on Feb 19, 2016
  7. btcdrak commented at 2:21 PM on March 15, 2016: contributor

    Closing for 7543

  8. btcdrak closed this on Mar 15, 2016

  9. btcdrak deleted the branch on Dec 3, 2016
  10. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-16 18:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me