Skip to content

Commit 25fc22a

Browse files
committed
replay ChannelClosed event on peer removal failure
1 parent 6c6e9a7 commit 25fc22a

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/event.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1613,6 +1613,7 @@ where
16131613
counterparty_node_id,
16141614
e
16151615
);
1616+
return Err(ReplayEvent());
16161617
}
16171618
}
16181619
}

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1848,7 +1848,7 @@ impl Node {
18481848
// task keeps firing and can drive the channel_reestablish recovery flow.
18491849
// This is especially important against LND peers, which don't always handle force-closure error messages correctly.
18501850

1851-
//Note that this means a force-closed peer is retained until the user explicitly calls Node::disconnect.
1851+
// Note that this means a force-closed peer is retained until the user explicitly calls Node::disconnect.
18521852

18531853
if open_channels.len() == 1 && !force {
18541854
self.peer_store.remove_peer(&counterparty_node_id)?;

0 commit comments

Comments
 (0)