Skip to content

Commit c255bcb

Browse files
authored
feat: mega
1 parent d3dcbfe commit c255bcb

2 files changed

Lines changed: 19 additions & 4 deletions

File tree

LDKNodeMonday/Service/Lightning Service/LightningNodeService.swift

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,18 @@ class LightningNodeService {
8989
// config.logDirPath = logPath
9090
config.network = self.network
9191
config.trustedPeers0conf = [
92-
Constants.Config.LiquiditySourceLsps2.Signet.see.nodeId
92+
Constants.Config.LiquiditySourceLsps2.Signet.megalith.nodeId
9393
]
9494
// config.logLevel = .trace
95+
96+
let anchor_cfg = AnchorChannelsConfig(
97+
trustedPeersNoReserve: [
98+
Constants.Config.LiquiditySourceLsps2.Signet.megalith.nodeId
99+
],
100+
perChannelReserveSats: UInt64(0)
101+
)
102+
config.anchorChannelsConfig = .some(anchor_cfg)
103+
95104

96105
let nodeBuilder = Builder.fromConfig(config: config)
97106
nodeBuilder.setChainSourceEsplora(serverUrl: self.server.url, config: nil)
@@ -112,9 +121,9 @@ class LightningNodeService {
112121
rgsServerUrl: Constants.Config.RGSServerURLNetwork.signet
113122
)
114123
nodeBuilder.setLiquiditySourceLsps2(
115-
nodeId: Constants.Config.LiquiditySourceLsps2.Signet.see.nodeId,
116-
address: Constants.Config.LiquiditySourceLsps2.Signet.see.address,
117-
token: Constants.Config.LiquiditySourceLsps2.Signet.see.token
124+
nodeId: Constants.Config.LiquiditySourceLsps2.Signet.megalith.nodeId,
125+
address: Constants.Config.LiquiditySourceLsps2.Signet.megalith.address,
126+
token: Constants.Config.LiquiditySourceLsps2.Signet.megalith.token
118127
)
119128
self.networkColor = Constants.BitcoinNetworkColor.signet.color
120129
case .regtest:

LDKNodeMonday/Utilities/Constants.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ struct Constants {
4949
static let see = LSP.see
5050
static let lqwd = LSP.lqwd
5151
static let olympus = LSP.olympus
52+
static let megalith = LSP.megalith
5253
}
5354
}
5455

@@ -77,6 +78,11 @@ struct Constants {
7778
nodeId: "0275eb44504d53b2a083852e3bffcc4e178195b9546c162590d8c282f3ed3243fc",
7879
token: ""
7980
)
81+
static let megalith = LightningServiceProvider(
82+
address: "143.198.63.18:9735",
83+
nodeId: "02d71bd10286058cfb8c983f761c069a549d822ca3eb4a4c67d15aa8bec7483251",
84+
token: ""
85+
)
8086
}
8187

8288
enum BitcoinNetworkColor {

0 commit comments

Comments
 (0)