From: Matt Corallo Date: Sun, 14 Apr 2019 20:14:48 +0000 (-0400) Subject: (TODO: Needs test) Add missing SpendableOutputDescriptor in revoked-remote-tx-claim X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=ae0a7e525f015d4b8c49312cda7b6a05a1c9709f;p=rust-lightning (TODO: Needs test) Add missing SpendableOutputDescriptor in revoked-remote-tx-claim --- 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); } }