X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fln%2Fchan_utils.rs;h=1d8dd30760f4b7384ec247a5bfae1f6482d523a7;hb=5bb7ba5b7d7f81977705f0ed5652c9924c7a1d56;hp=eab80a54e797cd9489e2fe25c59dc76f15375c48;hpb=35853a607d53b8987ebe4d4c7b7119fc188e1e32;p=rust-lightning diff --git a/src/ln/chan_utils.rs b/src/ln/chan_utils.rs index eab80a54..1d8dd307 100644 --- a/src/ln/chan_utils.rs +++ b/src/ln/chan_utils.rs @@ -133,7 +133,7 @@ pub fn get_revokeable_redeemscript(revocation_key: &PublicKey, to_self_delay: u1 .push_slice(&revocation_key.serialize()) .push_opcode(opcodes::all::OP_ELSE) .push_int(to_self_delay as i64) - .push_opcode(opcodes::OP_CSV) + .push_opcode(opcodes::all::OP_CSV) .push_opcode(opcodes::all::OP_DROP) .push_slice(&delayed_payment_key.serialize()) .push_opcode(opcodes::all::OP_ENDIF) @@ -206,7 +206,7 @@ pub fn get_htlc_redeemscript_with_explicit_keys(htlc: &HTLCOutputInCommitment, a .push_opcode(opcodes::all::OP_ELSE) .push_opcode(opcodes::all::OP_DROP) .push_int(htlc.cltv_expiry as i64) - .push_opcode(opcodes::OP_CLTV) + .push_opcode(opcodes::all::OP_CLTV) .push_opcode(opcodes::all::OP_DROP) .push_opcode(opcodes::all::OP_CHECKSIG) .push_opcode(opcodes::all::OP_ENDIF)