Skip to content

Commit 0bc82ee

Browse files
author
Antoine Riard
committed
Enforce MINIMALIF-compliant witness for timeout tx
1 parent b8876a9 commit 0bc82ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/onchaintx.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ impl<ChanSigner: ChannelKeys> OnchainTxHandler<ChanSigner> {
470470
if let &Some(preimage) = preimage {
471471
bumped_tx.input[i].witness.push(preimage.clone().0.to_vec());
472472
} else {
473-
bumped_tx.input[i].witness.push(vec![0]);
473+
bumped_tx.input[i].witness.push(vec![]);
474474
}
475475
bumped_tx.input[i].witness.push(witness_script.clone().into_bytes());
476476
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);

0 commit comments

Comments
 (0)