Update 9_3_Using_CSV_in_Scripts.md

This commit is contained in:
Shannon Appelcline 2017-05-26 13:43:18 -07:00 committed by GitHub
parent 02b5ed5571
commit c20640ca23

View File

@ -57,12 +57,10 @@ Issue the transaction, but it can't legally be mined until enough blocks or enou
Except pretty much no one does this. The new [BIP 68](https://github.com/bitcoin/bips/blob/master/bip-0068.mediawiki) definitions for `nSequence` were incorporated into Bitcoin Core at the same time as [BIP 112](https://github.com/bitcoin/bips/blob/master/bip-0112.mediawiki) which describes the CSV opcode, which works with `nSequence`, just like the CLTV opcode works with `nTimeLock`. Just like CLTV, CSV offers increased capabilities. So almost all usage of relative timelocks has been with the CSV opcode, not with the raw `nSequence` value on its own. Except pretty much no one does this. The new [BIP 68](https://github.com/bitcoin/bips/blob/master/bip-0068.mediawiki) definitions for `nSequence` were incorporated into Bitcoin Core at the same time as [BIP 112](https://github.com/bitcoin/bips/blob/master/bip-0112.mediawiki) which describes the CSV opcode, which works with `nSequence`, just like the CLTV opcode works with `nTimeLock`. Just like CLTV, CSV offers increased capabilities. So almost all usage of relative timelocks has been with the CSV opcode, not with the raw `nSequence` value on its own.
<center>
| | Absolute Timelock | Relative Timelock | | | Absolute Timelock | Relative Timelock |
|------------------|-------------------|-------------------| |:------------------:|-------------------|-------------------|
| **Lock Transaction** | nTimeLock | nSequence | | **Lock Transaction** | nTimeLock | nSequence |
| **Lock Output** | OP_CHECKLOCKTIMEVERIFY| OP_CHECKSEQUENCEVERIFY | | **Lock Output** | OP_CHECKLOCKTIMEVERIFY| OP_CHECKSEQUENCEVERIFY |
</center>
## Understand the CSV Opcode ## Understand the CSV Opcode