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 {
26302630 self.context.assert_no_commitment_advancement(transaction_number, "initial commitment_signed");
26312631 let commitment_signed = self.context.get_initial_commitment_signed(&self.funding, logger);
26322632 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+ },
26342637 Err(err) => {
26352638 self.funding.channel_transaction_parameters.funding_outpoint = None;
26362639 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 {
353353 }
354354 }
355355
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+
356364 /// Handles a `tx_signatures` message received from the counterparty.
357365 ///
358366 /// 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