]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Fix chan_utils indentation issue
authorMatt Corallo <git@bluematt.me>
Fri, 29 Jun 2018 20:02:19 +0000 (16:02 -0400)
committerMatt Corallo <git@bluematt.me>
Fri, 29 Jun 2018 20:44:19 +0000 (16:44 -0400)
src/ln/chan_utils.rs

index 45f674377307f362fecac115a4ba90d32c97cf4b..eaae62f92f118d756564f4c55c1338e7c820f6f3 100644 (file)
@@ -140,15 +140,15 @@ impl TxCreationKeys {
 /// the revocation key
 pub fn get_revokeable_redeemscript(revocation_key: &PublicKey, to_self_delay: u16, delayed_payment_key: &PublicKey) -> Script {
        Builder::new().push_opcode(opcodes::All::OP_IF)
-                                    .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_DROP)
-                                    .push_slice(&delayed_payment_key.serialize())
-                                    .push_opcode(opcodes::All::OP_ENDIF)
-                                    .push_opcode(opcodes::All::OP_CHECKSIG)
-                                    .into_script()
+                     .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_DROP)
+                     .push_slice(&delayed_payment_key.serialize())
+                     .push_opcode(opcodes::All::OP_ENDIF)
+                     .push_opcode(opcodes::All::OP_CHECKSIG)
+                     .into_script()
 }
 
 #[derive(Clone)]