Skip to content

Commit ede53bf

Browse files
authored
lsp: lqwd
1 parent 53ee3b4 commit ede53bf

File tree

4 files changed

+22
-10
lines changed

4 files changed

+22
-10
lines changed

LDKNodeMonday.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"kind" : "remoteSourceControl",
77
"location" : "https://github.com/reez/BitcoinUI.git",
88
"state" : {
9-
"branch" : "main",
10-
"revision" : "22ea27e2495aac9035c39a1b09165a802d90bdde"
9+
"revision" : "a92d2426526cf50858122c9c019e9b5ac138214a",
10+
"version" : "1.0.8"
1111
}
1212
},
1313
{
@@ -33,8 +33,8 @@
3333
"kind" : "remoteSourceControl",
3434
"location" : "https://github.com/lightningdevkit/ldk-node.git",
3535
"state" : {
36-
"revision" : "21566111f1c32f6f562a15711158020fa416f1d7",
37-
"version" : "0.4.2"
36+
"revision" : "db66cb90e5878833f367f46c4368259efde31720",
37+
"version" : "0.4.0"
3838
}
3939
},
4040
{

LDKNodeMonday/Service/Lightning Service/LightningNodeService.swift

+8-5
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class LightningNodeService {
2424
let storedNetworkString = try! keyService.getNetwork() ?? Network.signet.description
2525
let storedEsploraURL =
2626
try! keyService.getEsploraURL()
27-
?? EsploraServer.mutiny_signet.url
27+
?? EsploraServer.lqwd_signet.url
2828

2929
self.network = Network(stringValue: storedNetworkString) ?? .signet
3030
self.keyService = keyService
@@ -34,7 +34,7 @@ class LightningNodeService {
3434
config.logDirPath = FileManager.default.getDocumentsDirectoryPath()
3535
config.network = self.network
3636
config.trustedPeers0conf = [
37-
Constants.Config.LiquiditySourceLsps2.Signet.mutiny.nodeId
37+
Constants.Config.LiquiditySourceLsps2.Signet.lqwd.nodeId
3838
]
3939
config.logLevel = .trace
4040

@@ -53,10 +53,13 @@ class LightningNodeService {
5353
)
5454
self.networkColor = Constants.BitcoinNetworkColor.testnet.color
5555
case .signet:
56+
nodeBuilder.setGossipSourceRgs(
57+
rgsServerUrl: Constants.Config.RGSServerURLNetwork.signet
58+
)
5659
nodeBuilder.setLiquiditySourceLsps2(
57-
address: Constants.Config.LiquiditySourceLsps2.Signet.mutiny.address,
58-
nodeId: Constants.Config.LiquiditySourceLsps2.Signet.mutiny.nodeId,
59-
token: Constants.Config.LiquiditySourceLsps2.Signet.mutiny.token
60+
address: Constants.Config.LiquiditySourceLsps2.Signet.lqwd.address,
61+
nodeId: Constants.Config.LiquiditySourceLsps2.Signet.lqwd.nodeId,
62+
token: Constants.Config.LiquiditySourceLsps2.Signet.lqwd.token
6063
)
6164
self.networkColor = Constants.BitcoinNetworkColor.signet.color
6265
case .regtest:

LDKNodeMonday/Utilities/Constants.swift

+9
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ struct Constants {
2828
static let allValues = [
2929
EsploraServer.mutiny_signet,
3030
EsploraServer.bdk_signet,
31+
EsploraServer.lqwd_signet
3132
]
3233
}
3334
struct Testnet {
@@ -42,12 +43,14 @@ struct Constants {
4243
struct LiquiditySourceLsps2 {
4344
struct Signet {
4445
static let mutiny = LSP.mutiny
46+
static let lqwd = LSP.lqwd
4547
}
4648
}
4749

4850
struct RGSServerURLNetwork {
4951
static let bitcoin = "https://rapidsync.lightningdevkit.org/snapshot/"
5052
static let testnet = "https://rapidsync.lightningdevkit.org/testnet/snapshot/"
53+
static let signet = "https://mutinynet.lspd.lqwd.tech"
5154
}
5255

5356
}
@@ -64,6 +67,11 @@ struct Constants {
6467
nodeId: "031b301307574bbe9b9ac7b79cbe1700e31e544513eae0b5d7497483083f99e581",
6568
token: ""
6669
)
70+
static let lqwd = LightningServiceProvider(
71+
address: "192.243.215.98:27100",
72+
nodeId: "0275eb44504d53b2a083852e3bffcc4e178195b9546c162590d8c282f3ed3243fc",
73+
token: ""
74+
)
6775
}
6876

6977
enum BitcoinNetworkColor {
@@ -107,6 +115,7 @@ struct EsploraServer: Hashable {
107115

108116
static let mutiny_signet = EsploraServer(name: "Mutiny", url: "https://mutinynet.com/api")
109117
static let bdk_signet = EsploraServer(name: "BDK", url: "http://signet.bitcoindevkit.net")
118+
static let lqwd_signet = EsploraServer(name: "LQWD", url: "https://mutinynet.ltbl.io/api")
110119

111120
static let local_regtest = EsploraServer(name: "Local", url: "http://127.0.0.1:3002")
112121

LDKNodeMonday/View Model/Home/Receive/JITInvoiceViewModel.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class JITInvoiceViewModel: ObservableObject {
1414
@Published var invoice: Bolt11Invoice = ""
1515
@Published var receiveViewError: MondayError?
1616
@Published var networkColor = Color.gray
17-
@Published var amountMsat: String = "11000" // Note: temp amount, zero wont work below min
17+
@Published var amountMsat: String = "121000"
1818

1919
func receivePaymentViaJitChannel(
2020
amountMsat: UInt64,

0 commit comments

Comments
 (0)