Skip to content

Commit c58d5b4

Browse files
committed
f clarify holder_tx_signatures_opt when receiving tx_signatures from peer
1 parent 4621e97 commit c58d5b4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning/src/ln/channel.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6397,6 +6397,9 @@ impl<SP: Deref> FundedChannel<SP> where
63976397
self.funding.funding_transaction = funding_tx_opt.clone();
63986398
}
63996399

6400+
// Note that `holder_tx_signatures_opt` will be `None` if we sent `tx_signatures` first, so this
6401+
// case checks if there is a monitor persist in progress when we need to respond with our `tx_signatures`
6402+
// and sets it as pending.
64006403
if holder_tx_signatures_opt.is_some() && self.is_awaiting_initial_mon_persist() {
64016404
log_debug!(logger, "Not sending tx_signatures: a monitor update is in progress. Setting monitor_pending_tx_signatures.");
64026405
self.context.monitor_pending_tx_signatures = holder_tx_signatures_opt;

0 commit comments

Comments
 (0)