Skip to content

Commit

Permalink
fix: removed old hack restoring a node
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasonvdb committed Nov 13, 2023
1 parent e0e8e68 commit 330530e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/ios/Ldk.swift
Original file line number Diff line number Diff line change
Expand Up @@ -436,9 +436,7 @@ class Ldk: NSObject {
)

do {
//Only restore a node if we have existing channel monitors to restore. Else we lose our UserConfig settings when restoring.
//TOOD remove this check in 114 which should allow passing in userConfig
if let channelManagerSerialized = storedChannelManager, channelMonitorsSerialized.count > 0 {
if let channelManagerSerialized = storedChannelManager {
//Restoring node
LdkEventEmitter.shared.send(withEvent: .native_log, body: "Restoring node from disk")

Expand Down

0 comments on commit 330530e

Please sign in to comment.