]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Enforce MINIMALIF-compliant witness for timeout tx
authorAntoine Riard <ariard@student.42.fr>
Thu, 2 Apr 2020 21:10:35 +0000 (17:10 -0400)
committerAntoine Riard <ariard@student.42.fr>
Thu, 2 Apr 2020 21:10:35 +0000 (17:10 -0400)
lightning/src/ln/onchaintx.rs

index 02dc2ebc50b69644db51374219def8137151d3ec..40d9f18abb71efc445acb26218a6c4e89a3cc99b 100644 (file)
@@ -470,7 +470,7 @@ impl<ChanSigner: ChannelKeys> OnchainTxHandler<ChanSigner> {
                                        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);