Skip to content

Commit 6525262

Browse files
committed
f clarify holder_tx_signatures_opt when receiving tx_signatures from peer
1 parent aecf6b8 commit 6525262

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning/src/ln/channel.rs

+3
Original file line numberDiff line numberDiff line change
@@ -6526,6 +6526,9 @@ impl<SP: Deref> FundedChannel<SP> where
65266526
self.funding.funding_transaction = funding_tx_opt.clone();
65276527
}
65286528

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

0 commit comments

Comments
 (0)