From 949c8c8d67599e1b579f720755ed34659eec196a Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 29 May 2015 12:18:50 +0930 Subject: [PATCH] Fix redeem-2of2 script. Signed-off-by: Rusty Russell --- bitcoin_script.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bitcoin_script.c b/bitcoin_script.c index 2696c1ad5..a9765de50 100644 --- a/bitcoin_script.c +++ b/bitcoin_script.c @@ -87,6 +87,7 @@ u8 *bitcoin_redeem_2of2(const tal_t *ctx, add_push_bytes(&script, key2->key.data, key2->key.len); add_push_bytes(&script, key1->key.data, key1->key.len); } + add_op(&script, OP_LITERAL(2)); add_op(&script, OP_CHECKMULTISIG); return script; }