From: Antoine Riard Date: Thu, 2 Apr 2020 21:10:35 +0000 (-0400) Subject: Enforce MINIMALIF-compliant witness for timeout tx X-Git-Tag: v0.0.12~90^2~1 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=0bc82ee1bc357137f59d45abaff60f63032cf4c9;p=rust-lightning Enforce MINIMALIF-compliant witness for timeout tx --- diff --git a/lightning/src/ln/onchaintx.rs b/lightning/src/ln/onchaintx.rs index 02dc2ebc5..40d9f18ab 100644 --- a/lightning/src/ln/onchaintx.rs +++ b/lightning/src/ln/onchaintx.rs @@ -470,7 +470,7 @@ impl OnchainTxHandler { if let &Some(preimage) = preimage { bumped_tx.input[i].witness.push(preimage.clone().0.to_vec()); } else { - bumped_tx.input[i].witness.push(vec![0]); + bumped_tx.input[i].witness.push(vec![]); } bumped_tx.input[i].witness.push(witness_script.clone().into_bytes()); log_trace!(self, "Going to broadcast Claim Transaction {} claiming remote {} htlc output {} from {} with new feerate {}...", bumped_tx.txid(), if preimage.is_some() { "offered" } else { "received" }, outp.vout, outp.txid, new_feerate);