Skip to content
This repository was archived by the owner on Feb 9, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions lib/ios/Ldk.swift
Original file line number Diff line number Diff line change
Expand Up @@ -496,10 +496,19 @@ class Ldk: NSObject {
//Reset only objects created by initChannelManager
channelManagerConstructor?.interrupt()
channelManagerConstructor = nil
chainMonitor = nil
channelManager = nil
peerManager = nil
peerHandler = nil

chainMonitor = ChainMonitor(
chainSource: filter,
broadcaster: broadcaster,
logger: logger,
feeest: feeEstimator,
persister: persister
)

LdkEventEmitter.shared.send(withEvent: .native_log, body: "Starting LDK background tasks again")
initChannelManager(currentNetwork, blockHash: currentBlockchainTipHash, blockHeight: currentBlockchainHeight) { success in
//Notify JS that a sync is required
Expand Down