Skip to content

Commit e2cd52d

Browse files
authored
Merge pull request #420 from csralvall/fix-11_2
Fix possible typos in chapter 11.2
2 parents 57cf4e7 + a1facbe commit e2cd52d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

11_2_Using_CLTV_in_Scripts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Or this:
3838

3939
### Understand a CLTV Absolute Block Height
4040

41-
This is how `OPCHECKLOCKTIMEVERIFY` would check against a blockheight that was reached on May 24, 2017:
41+
This is how `OP_CHECKLOCKTIMEVERIFY` would check against a blockheight that was reached on May 24, 2017:
4242
```
4343
467951 OP_CHECKLOCKTIMEVERIFY
4444
```
@@ -146,7 +146,7 @@ Finally, the remainder of the script runs, which is a normal check of a signatur
146146

147147
## Summary: Using CLTV in Scripts
148148

149-
`OP-CHECKLOCKTIMEVERIFY` is a simple opcode that looks at a single argument, interprets it as a blockheight or UNIX timestamp, and only allows its UTXO to be unlocked if that blockheight or UNIX timestamp is in the past. Setting `nLockTime` on the spending transaction is what allows Bitcoin to make this calculation.
149+
`OP_CHECKLOCKTIMEVERIFY` is a simple opcode that looks at a single argument, interprets it as a blockheight or UNIX timestamp, and only allows its UTXO to be unlocked if that blockheight or UNIX timestamp is in the past. Setting `nLockTime` on the spending transaction is what allows Bitcoin to make this calculation.
150150

151151
> :fire: ***What is the Power of CLTV?*** You've already seem that simple locktimes were one of the bases of Smart Contracts. CLTV takes the next step. Now you can both guarantee that a UTXO can't be spent before a certain time _and_ guarantee that it won't be spent either. In its simplest form, this could be used to create a trust that someone could only access when they reached 18 or a retirement fund that they could only access when they turned 50. However its true power comes when combined with conditionals, where the CLTV only activates in certain situations.
152152

0 commit comments

Comments
 (0)