Skip to content

Commit 73639c3

Browse files
committed
Don't retransmit tx_signatures pending monitor update
The ChannelMonitor must be successfully persisted before transmitting any messages.
1 parent a0b6dd6 commit 73639c3

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
@@ -9289,6 +9289,9 @@ where
92899289
if session.holder_tx_signatures().is_none() {
92909290
log_debug!(logger, "Waiting for funding transaction signatures to be provided");
92919291
None
9292+
} else if self.context.channel_state.is_monitor_update_in_progress() {
9293+
log_debug!(logger, "Waiting for monitor update before providing funding transaction signatures");
9294+
None
92929295
} else {
92939296
session.holder_tx_signatures().clone()
92949297
}

0 commit comments

Comments
 (0)