Skip to content

Commit af15b81

Browse files
jkczyzAnyitechs
authored andcommitted
Don't retransmit tx_signatures pending monitor update
The ChannelMonitor must be successfully persisted before transmitting any messages.
1 parent cea6413 commit af15b81

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
@@ -9326,6 +9326,9 @@ where
93269326
if session.holder_tx_signatures().is_none() {
93279327
log_debug!(logger, "Waiting for funding transaction signatures to be provided");
93289328
None
9329+
} else if self.context.channel_state.is_monitor_update_in_progress() {
9330+
log_debug!(logger, "Waiting for monitor update before providing funding transaction signatures");
9331+
None
93299332
} else {
93309333
session.holder_tx_signatures().clone()
93319334
}

0 commit comments

Comments
 (0)