Skip to content

Commit fb81fe7

Browse files
committed
FIXME: Why does handle_channel_close override the witness?
1 parent afdc3f2 commit fb81fe7

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

  • lightning/src/events/bump_transaction

lightning/src/events/bump_transaction/mod.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,14 +1285,8 @@ mod tests {
12851285
Ok(res)
12861286
}
12871287
fn sign_psbt(&self, psbt: Psbt) -> Result<Transaction, ()> {
1288-
let mut tx = psbt.unsigned_tx;
1289-
for input in tx.input.iter_mut() {
1290-
if input.previous_output.txid != Txid::from_byte_array([44; 32]) {
1291-
// Channel output, add a realistic size witness to make the assertions happy
1292-
input.witness = Witness::from_slice(&[vec![42; 162]]);
1293-
}
1294-
}
1295-
Ok(tx)
1288+
// FIXME: Why does handle_channel_close override the witness?
1289+
Ok(psbt.unsigned_tx)
12961290
}
12971291
}
12981292

0 commit comments

Comments
 (0)