Skip to content

Commit 4c2193c

Browse files
committed
f transition to AwaitingChannelReady during monitor restore if we received tx_signatures and queue ours
1 parent 724a855 commit 4c2193c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lightning/src/ln/channel.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6916,7 +6916,11 @@ impl<SP: Deref> FundedChannel<SP> where
69166916
// transaction and waits for us to do it).
69176917
let tx_signatures = self.context.monitor_pending_tx_signatures.take();
69186918
if tx_signatures.is_some() {
6919-
self.context.channel_state.set_our_tx_signatures_ready();
6919+
if self.context.channel_state.is_their_tx_signatures_sent() {
6920+
self.context.channel_state = ChannelState::AwaitingChannelReady(AwaitingChannelReadyFlags::new());
6921+
} else {
6922+
self.context.channel_state.set_our_tx_signatures_ready();
6923+
}
69206924
}
69216925

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

0 commit comments

Comments
 (0)