Skip to content

Commit a16a9d5

Browse files
committed
f call direct to self.force_close_channel_with_peer isntead
1 parent 90a7960 commit a16a9d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3484,7 +3484,7 @@ impl<ChanSigner: ChannelKeys, M: Deref + Sync + Send, T: Deref + Sync + Send, K:
34843484
for chan in self.list_channels() {
34853485
if chan.remote_network_id == *counterparty_node_id {
34863486
// Untrusted messages from peer, we throw away the error if id points to a non-existent channel
3487-
let _ = self.force_close_channel(&chan.channel_id);
3487+
let _ = self.force_close_channel_with_peer(&chan.channel_id, Some(counterparty_node_id));
34883488
}
34893489
}
34903490
} else {

0 commit comments

Comments
 (0)