Skip to content

Commit

Permalink
chore: use default config
Browse files Browse the repository at this point in the history
  • Loading branch information
reez authored Jun 13, 2024
1 parent 1b8cf74 commit 2f5cf03
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions LDKNodeMonday/Service/Lightning Service/LightningNodeService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,13 @@ class LightningNodeService {
self.network = Network(stringValue: storedNetworkString) ?? .testnet
self.keyService = keyService

let config = Config(
storageDirPath: FileManager.default.getDocumentsDirectoryPath(),
logDirPath: FileManager.default.getDocumentsDirectoryPath(),
network: network,
listeningAddresses: nil,
defaultCltvExpiryDelta: UInt32(144),
onchainWalletSyncIntervalSecs: UInt64(60),
walletSyncIntervalSecs: UInt64(20),
feeRateCacheUpdateIntervalSecs: UInt64(600),
trustedPeers0conf: [
Constants.Config.LiquiditySourceLsps2.Signet.mutiny.nodeId
],
probingLiquidityLimitMultiplier: UInt64(3),
logLevel: .trace
)
var config = defaultConfig()
config.storageDirPath = FileManager.default.getDocumentsDirectoryPath()
config.logDirPath = FileManager.default.getDocumentsDirectoryPath()
config.network = self.network
config.trustedPeers0conf = [
Constants.Config.LiquiditySourceLsps2.Signet.mutiny.nodeId
]

let nodeBuilder = Builder.fromConfig(config: config)
nodeBuilder.setEsploraServer(esploraServerUrl: storedEsploraURL)
Expand Down

0 comments on commit 2f5cf03

Please sign in to comment.