From 64b443dcd981cd219cffd8ed85ebeb4b61b13d3f Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sat, 30 May 2015 21:05:25 +0930 Subject: [PATCH] Add doubts on me & you sig on commit transaction. Signed-off-by: Rusty Russell --- bitcoin_script.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bitcoin_script.c b/bitcoin_script.c index 49cb4f482..a67b91f28 100644 --- a/bitcoin_script.c +++ b/bitcoin_script.c @@ -206,6 +206,12 @@ u8 *bitcoin_redeem_revocable(const tal_t *ctx, add_op(&script, OP_CHECKSIG); /* Otherwise, it should be both our sigs. */ + + /* FIXME: Perhaps this is a bad idea? We don't need it to + * close, and without this we force the blockchain to commit + * to the timeout: that may make a flood of transactions due + * to hub collapse less likely (as some optimists hope hub + * will return). */ add_op(&script, OP_ELSE); add_op(&script, OP_LITERAL(2));