Skip to content

Commit f7cf0ad

Browse files
committed
test main net
1 parent 4a9a4fd commit f7cf0ad

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

BDKSwiftExampleWallet/Resources/Localizable.xcstrings

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,9 @@
409409
}
410410
}
411411
}
412+
},
413+
"Bitcoin" : {
414+
412415
},
413416
"Bitcoin Balance" : {
414417
"localizations" : {

BDKSwiftExampleWallet/Service/BDK Service/BDKService.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import Foundation
1111
private class BDKService {
1212
static var shared: BDKService = BDKService()
1313

14-
private let service: BDKSyncService = KyotoService.live
15-
// private let service: BDKSyncService = EsploraService.live
14+
// private let service: BDKSyncService = KyotoService.live
15+
private let service: BDKSyncService = EsploraService.live
1616
private let keyClient: KeyClient
1717
private var needsFullScan: Bool = false
1818
private(set) var network: Network

BDKSwiftExampleWallet/Service/BDKSyncService/KyotoService.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ extension KyotoService {
1414

1515
final class KyotoService: BDKSyncService {
1616

17-
private static let nodeHeight: UInt32 = 250_000
17+
// private static let nodeHeight: UInt32 = 250_000
18+
private static let nodeHeight: UInt32 = 800_000
1819

1920
static let shared = KyotoService()
2021

BDKSwiftExampleWallet/Utilities/Constants.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ struct Constants {
1616
private static let blockstream = "https://blockstream.info/api"
1717
private static let mempoolspace = "https://mempool.space/api"
1818
static let allValues = [
19-
mempoolspace,
2019
blockstream,
20+
mempoolspace,
2121
]
2222
}
2323
struct Regtest {

BDKSwiftExampleWallet/View/OnboardingView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ struct OnboardingView: View {
112112

113113
Group {
114114
Picker("Network", selection: $viewModel.selectedNetwork) {
115+
Text("Bitcoin").tag(Network.bitcoin)
115116
Text("Signet").tag(Network.signet)
116117
Text("Testnet").tag(Network.testnet)
117118
Text("Testnet4").tag(Network.testnet4)

0 commit comments

Comments
 (0)