From ae0a7e525f015d4b8c49312cda7b6a05a1c9709f Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Sun, 14 Apr 2019 16:14:48 -0400 Subject: [PATCH] (TODO: Needs test) Add missing SpendableOutputDescriptor in revoked-remote-tx-claim --- src/ln/channelmonitor.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ln/channelmonitor.rs b/src/ln/channelmonitor.rs index 0bc03ae6d..034e7bfb9 100644 --- a/src/ln/channelmonitor.rs +++ b/src/ln/channelmonitor.rs @@ -1214,6 +1214,11 @@ impl ChannelMonitor { let sighash_parts = bip143::SighashComponents::new(&single_htlc_tx); sign_input!(sighash_parts, single_htlc_tx.input[0], Some(idx), htlc.amount_msat / 1000); assert!(predicted_weight >= single_htlc_tx.get_weight()); + + spendable_outputs.push(SpendableOutputDescriptor::StaticOutput { + outpoint: BitcoinOutPoint { txid: single_htlc_tx.txid(), vout: 0 }, + output: single_htlc_tx.output[0].clone(), + }); txn_to_broadcast.push(single_htlc_tx); } } -- 2.39.5