From 0bc82ee1bc357137f59d45abaff60f63032cf4c9 Mon Sep 17 00:00:00 2001 From: Antoine Riard Date: Thu, 2 Apr 2020 17:10:35 -0400 Subject: [PATCH] Enforce MINIMALIF-compliant witness for timeout tx --- lightning/src/ln/onchaintx.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5