Skip to content

Commit 561aaba

Browse files
committed
f transition to AwaitingChannelReady during monitor restore if we received tx_signatures and queue ours
1 parent e8d9932 commit 561aaba

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lightning/src/ln/channel.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -6886,7 +6886,11 @@ impl<SP: Deref> FundedChannel<SP> where
68866886
// transaction and waits for us to do it).
68876887
let tx_signatures = self.context.monitor_pending_tx_signatures.take();
68886888
if tx_signatures.is_some() {
6889-
self.context.channel_state.set_our_tx_signatures_ready();
6889+
if self.context.channel_state.is_their_tx_signatures_sent() {
6890+
self.context.channel_state = ChannelState::AwaitingChannelReady(AwaitingChannelReadyFlags::new());
6891+
} else {
6892+
self.context.channel_state.set_our_tx_signatures_ready();
6893+
}
68906894
}
68916895

68926896
if self.context.channel_state.is_peer_disconnected() {

0 commit comments

Comments
 (0)