Skip to content

Commit

Permalink
bolt: update to lightning-rfc:636b9f, change opcode reference format
Browse files Browse the repository at this point in the history
Updates BOLT reference to match spec; replaces OP_CSV ->
OP_CHECKSEQUENCEVERIFY
  • Loading branch information
niftynei authored and rustyrussell committed Jul 16, 2019
1 parent 85e325c commit 81c40da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ CCANDIR := ccan

# Where we keep the BOLT RFCs
BOLTDIR := ../lightning-rfc/
BOLTVERSION := 6f6ea63233c56f14c04de6cf0ec1e4f0e91c1ead
BOLTVERSION := 636b9f2e28c5eb9564b50b85ac85e23fc2176623

-include config.vars

Expand Down
6 changes: 3 additions & 3 deletions bitcoin/script.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ u8 **bitcoin_witness_sig_and_element(const tal_t *ctx,
/* BOLT #3:
*
* This output sends funds back to the owner of this commitment transaction and
* thus must be timelocked using `OP_CSV`. It can be claimed, without delay,
* thus must be timelocked using `OP_CHECKSEQUENCEVERIFY`. It can be claimed, without delay,
* by the other party if they know the revocation private key. The output is a
* version-0 P2WSH, with a witness script:
*
Expand All @@ -463,7 +463,7 @@ u8 **bitcoin_witness_sig_and_element(const tal_t *ctx,
* <revocationpubkey>
* OP_ELSE
* `to_self_delay`
* OP_CSV
* OP_CHECKSEQUENCEVERIFY
* OP_DROP
* <local_delayedpubkey>
* OP_ENDIF
Expand Down Expand Up @@ -706,7 +706,7 @@ u8 *bitcoin_wscript_htlc_tx(const tal_t *ctx,
* <revocationpubkey>
* OP_ELSE
* `to_self_delay`
* OP_CSV
* OP_CHECKSEQUENCEVERIFY
* OP_DROP
* <local_delayedpubkey>
* OP_ENDIF
Expand Down

0 comments on commit 81c40da

Please sign in to comment.