File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
BDKSwiftExampleWallet/Extensions/BDK+Extensions Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,22 @@ extension CbfClient {
1818
1919 static func createComponents( wallet: Wallet ) -> ( client: CbfClient , node: CbfNode ) {
2020 do {
21+ #if DEBUG
22+ let dataDirPath = Constants . Config. Kyoto. dbPath
23+ print ( " [Kyoto] dataDir: \( dataDirPath) " )
24+ do {
25+ let testFile = ( dataDirPath as NSString ) . appendingPathComponent ( " .write_test " )
26+ try Data ( " ok " . utf8) . write ( to: URL ( fileURLWithPath: testFile) )
27+ try ? FileManager . default. removeItem ( atPath: testFile)
28+ print ( " [Kyoto] dataDir writable: true " )
29+ } catch {
30+ print ( " [Kyoto] dataDir writable: false error= \( error) " )
31+ }
32+ let peers = Constants . Networks. Signet. Regular. kyotoPeers
33+ print ( " [Kyoto] peers count: \( peers. count) " )
34+ for peer in peers { print ( " [Kyoto] peer: \( peer) " ) }
35+ #endif
36+
2137 let components = try CbfBuilder ( )
2238 . logLevel ( logLevel: . debug)
2339 . scanType ( scanType: . sync)
You can’t perform that action at this time.
0 commit comments