File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -2630,7 +2630,10 @@ impl<SP: Deref> PendingV2Channel<SP> where SP::Target: SignerProvider {
2630
2630
self.context.assert_no_commitment_advancement(transaction_number, "initial commitment_signed");
2631
2631
let commitment_signed = self.context.get_initial_commitment_signed(&self.funding, logger);
2632
2632
let commitment_signed = match commitment_signed {
2633
- Ok(commitment_signed) => commitment_signed,
2633
+ Ok(commitment_signed) => {
2634
+ self.funding.funding_transaction = Some(signing_session.unsigned_tx().build_unsigned_tx());
2635
+ commitment_signed
2636
+ },
2634
2637
Err(err) => {
2635
2638
self.funding.channel_transaction_parameters.funding_outpoint = None;
2636
2639
return Err(ChannelError::Close((err.to_string(), ClosureReason::HolderForceClosed { broadcasted_latest_txn: Some(false) })));
Original file line number Diff line number Diff line change @@ -353,6 +353,14 @@ impl InteractiveTxSigningSession {
353
353
}
354
354
}
355
355
356
+ pub fn get_tx_signatures ( & self ) -> Option < TxSignatures > {
357
+ if self . has_received_commitment_signed {
358
+ self . holder_tx_signatures . clone ( )
359
+ } else {
360
+ None
361
+ }
362
+ }
363
+
356
364
/// Handles a `tx_signatures` message received from the counterparty.
357
365
///
358
366
/// If the holder is required to send their `tx_signatures` message and these signatures have
You can’t perform that action at this time.
0 commit comments