Skip to content

Commit 147518f

Browse files
authored
Merge pull request #31 from lightningdevkit/regtest_monitor_tooling
Create version 0.0.106.2
2 parents c62b596 + 1f52fcb commit 147518f

23 files changed

+1482
-282
lines changed

bindings/LDK/Bindings.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6490,7 +6490,7 @@ withUnsafePointer(to: Bindings.array_to_tuple32(array: random_seed_bytes)) { (ra
64906490
*/
64916491

64926492
public class func get_ldk_swift_bindings_version() -> String {
6493-
return "8e00d9af56a2d5df10febaa37026399f925b414b"
6493+
return "fe0ea5b41ca6eb7ef88a4d2fbd7dc1f647c89112"
64946494
}
64956495

64966496
}

bindings/LDK/options/Bech32Error.swift

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,40 @@ public class Bech32Error: NativeTypeWrapper {
5757
}
5858

5959

60+
public func clone() -> Bech32Error {
61+
62+
return Bech32Error(pointer: withUnsafePointer(to: self.cOpaqueStruct!) { (origPointer: UnsafePointer<LDKBech32Error>) in
63+
Bech32Error_clone(origPointer)
64+
});
65+
}
66+
67+
internal func danglingClone() -> Bech32Error {
68+
let dangledClone = self.clone()
69+
dangledClone.dangling = true
70+
return dangledClone
71+
}
72+
73+
74+
internal func free() -> Void {
75+
76+
return Bech32Error_free(self.cOpaqueStruct!);
77+
}
78+
79+
internal func dangle() -> Bech32Error {
80+
self.dangling = true
81+
return self
82+
}
83+
84+
deinit {
85+
if !self.dangling {
86+
Bindings.print("Freeing Bech32Error \(self.instanceNumber).")
87+
self.free()
88+
} else {
89+
Bindings.print("Not freeing Bech32Error \(self.instanceNumber) due to dangle.")
90+
}
91+
}
92+
93+
6094
/* OPTION_METHODS_END */
6195

6296
/* TYPE_CLASSES */

bindings/LDK/options/ParseError.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ ParseError_clone(origPointer)
120120

121121
public class func bech32_error(a: Bech32Error) -> ParseError {
122122

123-
return ParseError(pointer: ParseError_bech32_error(a.cOpaqueStruct!));
123+
return ParseError(pointer: ParseError_bech32_error(a.danglingClone().cOpaqueStruct!));
124124
}
125125

126126
public class func malformed_signature(a: LDKSecp256k1Error) -> ParseError {

bindings/batteries/ChannelManagerConstructor.swift

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import Foundation
1010
enum InvalidSerializedDataError: Error {
1111
case invalidSerializedChannelMonitor
1212
case invalidSerializedChannelManager
13+
case invalidSerializedNetworkGraph
1314
case duplicateSerializedChannelMonitor
1415
case badNodeSecret
1516
}
@@ -30,11 +31,11 @@ public class ChannelManagerConstructor: NativeTypeWrapper {
3031
let logger: Logger
3132
fileprivate var customPersister: CustomChannelManagerPersister?
3233
fileprivate var customEventHandler: EventHandler?
33-
fileprivate var net_graph: NetworkGraph?
34+
public private(set) var net_graph: NetworkGraph?
3435
fileprivate var graph_msg_handler: NetGraphMsgHandler?
3536
fileprivate var scorer: MultiThreadedLockableScore?
3637
fileprivate let keysInterface: KeysInterface!
37-
public var payer: InvoicePayer?
38+
public private(set) var payer: InvoicePayer?
3839
public let peerManager: PeerManager
3940

4041

@@ -49,7 +50,7 @@ public class ChannelManagerConstructor: NativeTypeWrapper {
4950
private let chain_monitor: ChainMonitor
5051

5152

52-
public init(channel_manager_serialized: [UInt8], channel_monitors_serialized: [[UInt8]], keys_interface: KeysInterface, fee_estimator: FeeEstimator, chain_monitor: ChainMonitor, filter: Filter?, net_graph: NetworkGraph?, tx_broadcaster: BroadcasterInterface, logger: Logger) throws {
53+
public init(channel_manager_serialized: [UInt8], channel_monitors_serialized: [[UInt8]], keys_interface: KeysInterface, fee_estimator: FeeEstimator, chain_monitor: ChainMonitor, filter: Filter?, net_graph_serialized: [UInt8]?, tx_broadcaster: BroadcasterInterface, logger: Logger) throws {
5354

5455
var monitors: [LDKChannelMonitor] = []
5556
self.channel_monitors = []
@@ -104,7 +105,14 @@ public class ChannelManagerConstructor: NativeTypeWrapper {
104105

105106
let random_data = keys_interface.get_secure_random_bytes();
106107

107-
self.net_graph = net_graph
108+
if let serializedNetworkGraph = net_graph_serialized {
109+
let netGraphResult = NetworkGraph.read(ser: serializedNetworkGraph)
110+
if !netGraphResult.isOk(){
111+
throw InvalidSerializedDataError.invalidSerializedNetworkGraph
112+
}
113+
self.net_graph = netGraphResult.getValue()
114+
}
115+
108116
let noCustomMessages = IgnoringMessageHandler()
109117
var messageHandler: MessageHandler!
110118
if let netGraph = net_graph {
@@ -263,6 +271,10 @@ fileprivate class CustomChannelManagerPersister: Persister {
263271
override func persist_manager(channel_manager: ChannelManager) -> Result_NoneErrorZ {
264272
return self.handler.persist_manager(channel_manager: channel_manager)
265273
}
274+
275+
override func persist_graph(network_graph: NetworkGraph) -> Result_NoneErrorZ {
276+
return self.handler.persist_graph(network_graph: network_graph)
277+
}
266278
}
267279

268280
fileprivate class CustomEventHandler: EventHandler {
@@ -275,10 +287,9 @@ fileprivate class CustomEventHandler: EventHandler {
275287
}
276288

277289
override func handle_event(event: Event) {
278-
self.handler.handle_event(event: event)
290+
self.handler.handle_event(event: event.clone())
279291
}
280292

281-
282293
}
283294

284295
public protocol ExtendedChannelManagerPersister: Persister {

ci/LDKSwift/Tests/LDKSwiftTests/LDKSwiftTest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class LDKSwiftTest: XCTestCase {
6363
fee_estimator: feeEstimator,
6464
chain_monitor: chainMonitor,
6565
filter: filter,
66-
net_graph: nil,
66+
net_graph_serialized: nil,
6767
tx_broadcaster: broadcaster,
6868
logger: logger
6969
)

xcode/DirectBindingsApp/DirectBindingsApp.xcodeproj/project.pbxproj

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
/* Begin PBXBuildFile section */
1010
071041C427DA763F00AE1175 /* PolarConnectionExperiment.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07C753E826D954B100081BF8 /* PolarConnectionExperiment.swift */; };
11-
074A2DC426D957BC00370D0B /* RegtestBlockchainObserver.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07BBCB2826D0369F000D96C4 /* RegtestBlockchainObserver.swift */; };
11+
074A2DC426D957BC00370D0B /* RegtestBlockchainObserverOld.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07BBCB2826D0369F000D96C4 /* RegtestBlockchainObserverOld.swift */; };
1212
074A2DCD26D970D500370D0B /* RegtestBroadcasterInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = 074A2DCB26D970D400370D0B /* RegtestBroadcasterInterface.swift */; };
1313
074A2DCE26D970D500370D0B /* RegtestChannelManagerPersister.swift in Sources */ = {isa = PBXBuildFile; fileRef = 074A2DCC26D970D500370D0B /* RegtestChannelManagerPersister.swift */; };
1414
075E22A226FEF8540000A76B /* NetGraphMsgHandlerConstructor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 075E22A126FEF8540000A76B /* NetGraphMsgHandlerConstructor.swift */; };
@@ -693,6 +693,8 @@
693693
076D251827FC219300970AFC /* InvoicePayer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 076D227727FC219000970AFC /* InvoicePayer.swift */; };
694694
076D251927FC219300970AFC /* DelayedPaymentOutputDescriptor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 076D227827FC219000970AFC /* DelayedPaymentOutputDescriptor.swift */; };
695695
076D251A27FC219300970AFC /* DelayedPaymentOutputDescriptor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 076D227827FC219000970AFC /* DelayedPaymentOutputDescriptor.swift */; };
696+
076D2A6C280399F500970AFC /* RegtestBlockchainManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 076D2A6B280399F500970AFC /* RegtestBlockchainManager.swift */; };
697+
076D2A6E28039ACB00970AFC /* BlockchainObserver.swift in Sources */ = {isa = PBXBuildFile; fileRef = 076D2A6D28039ACB00970AFC /* BlockchainObserver.swift */; };
696698
0780F9C7272865260095FD6A /* LNSyncHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0780F9C6272865260095FD6A /* LNSyncHandler.swift */; };
697699
07BBC76A26D02727000D96C4 /* DirectBindingsAppApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07BBC76926D02727000D96C4 /* DirectBindingsAppApp.swift */; };
698700
07BBC76C26D02727000D96C4 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07BBC76B26D02727000D96C4 /* ContentView.swift */; };
@@ -727,6 +729,9 @@
727729
07BBCE7726D03B49000D96C4 /* TestBroadcasterInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07BBCE6726D03B49000D96C4 /* TestBroadcasterInterface.swift */; };
728730
07C753E126D6BE4E00081BF8 /* HumanObjectPeerTestInstance.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07C753DF26D6BE4E00081BF8 /* HumanObjectPeerTestInstance.swift */; };
729731
07C753F326D9560200081BF8 /* PromiseKit in Frameworks */ = {isa = PBXBuildFile; productRef = 07C753F226D9560200081BF8 /* PromiseKit */; };
732+
2DD11C86114C6827D6E338A2 /* BlockchainObserver.swift in Sources */ = {isa = PBXBuildFile; fileRef = 076D2A6D28039ACB00970AFC /* BlockchainObserver.swift */; };
733+
2DD11F1338488839D8955B7A /* PolarIntegrationTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2DD1172C8DF0B244CF69B0FA /* PolarIntegrationTest.swift */; };
734+
2DD11F99CF6E547FA7FB9225 /* RegtestBlockchainManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 076D2A6B280399F500970AFC /* RegtestBlockchainManager.swift */; };
730735
/* End PBXBuildFile section */
731736

732737
/* Begin PBXContainerItemProxy section */
@@ -1092,6 +1097,8 @@
10921097
076D227627FC219000970AFC /* OutPoint.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OutPoint.swift; sourceTree = "<group>"; };
10931098
076D227727FC219000970AFC /* InvoicePayer.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = InvoicePayer.swift; sourceTree = "<group>"; };
10941099
076D227827FC219000970AFC /* DelayedPaymentOutputDescriptor.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DelayedPaymentOutputDescriptor.swift; sourceTree = "<group>"; };
1100+
076D2A6B280399F500970AFC /* RegtestBlockchainManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RegtestBlockchainManager.swift; sourceTree = "<group>"; };
1101+
076D2A6D28039ACB00970AFC /* BlockchainObserver.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BlockchainObserver.swift; sourceTree = "<group>"; };
10951102
0780F9C6272865260095FD6A /* LNSyncHandler.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LNSyncHandler.swift; sourceTree = "<group>"; };
10961103
07BBC76626D02727000D96C4 /* DirectBindingsApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DirectBindingsApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
10971104
07BBC76926D02727000D96C4 /* DirectBindingsAppApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DirectBindingsAppApp.swift; sourceTree = "<group>"; };
@@ -1115,7 +1122,7 @@
11151122
07BBCB1826D034B1000D96C4 /* libldk.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libldk.a; sourceTree = "<group>"; };
11161123
07BBCB1A26D03571000D96C4 /* libresolv.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libresolv.tbd; path = usr/lib/libresolv.tbd; sourceTree = SDKROOT; };
11171124
07BBCB2726D0369F000D96C4 /* SwiftSocketPeerHandler.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SwiftSocketPeerHandler.swift; sourceTree = "<group>"; };
1118-
07BBCB2826D0369F000D96C4 /* RegtestBlockchainObserver.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RegtestBlockchainObserver.swift; sourceTree = "<group>"; };
1125+
07BBCB2826D0369F000D96C4 /* RegtestBlockchainObserverOld.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RegtestBlockchainObserverOld.swift; sourceTree = "<group>"; };
11191126
07BBCB2926D0369F000D96C4 /* SwiftSocketEchoHandler.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SwiftSocketEchoHandler.swift; sourceTree = "<group>"; };
11201127
07BBCB3426D036AC000D96C4 /* TCPPeerHandler.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TCPPeerHandler.swift; sourceTree = "<group>"; };
11211128
07BBCB3526D036AC000D96C4 /* ChannelManagerConstructor.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ChannelManagerConstructor.swift; sourceTree = "<group>"; };
@@ -1130,6 +1137,7 @@
11301137
07BBCE6726D03B49000D96C4 /* TestBroadcasterInterface.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TestBroadcasterInterface.swift; sourceTree = "<group>"; };
11311138
07C753DF26D6BE4E00081BF8 /* HumanObjectPeerTestInstance.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HumanObjectPeerTestInstance.swift; sourceTree = "<group>"; };
11321139
07C753E826D954B100081BF8 /* PolarConnectionExperiment.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PolarConnectionExperiment.swift; sourceTree = "<group>"; };
1140+
2DD1172C8DF0B244CF69B0FA /* PolarIntegrationTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PolarIntegrationTest.swift; sourceTree = "<group>"; };
11331141
/* End PBXFileReference section */
11341142

11351143
/* Begin PBXFrameworksBuildPhase section */
@@ -1168,6 +1176,7 @@
11681176
076D1D2227F3828E00970AFC /* BTCVarInt.swift */,
11691177
076D1D2527F38FDD00970AFC /* BitcoinTests.swift */,
11701178
076D1D2727F397E600970AFC /* BTCHashing.swift */,
1179+
2DD1172C8DF0B244CF69B0FA /* PolarIntegrationTest.swift */,
11711180
);
11721181
path = bitcoin;
11731182
sourceTree = "<group>";
@@ -1652,9 +1661,11 @@
16521661
074A2DCB26D970D400370D0B /* RegtestBroadcasterInterface.swift */,
16531662
074A2DCC26D970D500370D0B /* RegtestChannelManagerPersister.swift */,
16541663
07BBCB2726D0369F000D96C4 /* SwiftSocketPeerHandler.swift */,
1655-
07BBCB2826D0369F000D96C4 /* RegtestBlockchainObserver.swift */,
1664+
07BBCB2826D0369F000D96C4 /* RegtestBlockchainObserverOld.swift */,
16561665
07BBCB2926D0369F000D96C4 /* SwiftSocketEchoHandler.swift */,
16571666
0780F9C6272865260095FD6A /* LNSyncHandler.swift */,
1667+
076D2A6D28039ACB00970AFC /* BlockchainObserver.swift */,
1668+
076D2A6B280399F500970AFC /* RegtestBlockchainManager.swift */,
16581669
);
16591670
path = "app-batteries";
16601671
sourceTree = "<group>";
@@ -1781,8 +1792,8 @@
17811792
);
17821793
mainGroup = 07BBC75D26D02727000D96C4;
17831794
packageReferences = (
1784-
07C753F126D9560200081BF8 /* XCRemoteSwiftPackageReference "PromiseKit" */,
1785-
076D1D2927F5163500970AFC /* XCRemoteSwiftPackageReference "swift-crypto" */,
1795+
07C753F126D9560200081BF8 /* XCRemoteSwiftPackageReference "PromiseKit.git" */,
1796+
076D1D2927F5163500970AFC /* XCRemoteSwiftPackageReference "swift-crypto.git" */,
17861797
);
17871798
productRefGroup = 07BBC76726D02727000D96C4 /* Products */;
17881799
projectDirPath = "";
@@ -1909,11 +1920,12 @@
19091920
076D23EB27FC219100970AFC /* Result_PositiveTimestampCreationErrorZ.swift in Sources */,
19101921
076D244927FC219200970AFC /* InvoiceFeatures.swift in Sources */,
19111922
076D23A127FC219100970AFC /* Result_COption_EventZDecodeErrorZ.swift in Sources */,
1923+
076D2A6E28039ACB00970AFC /* BlockchainObserver.swift in Sources */,
19121924
076D23DD27FC219100970AFC /* Result_C2Tuple_SignatureCVec_SignatureZZNoneZ.swift in Sources */,
19131925
076D230127FC219000970AFC /* C2Tuple_SignatureSignatureZ.swift in Sources */,
19141926
076D22A327FC219000970AFC /* Option_u16Z.swift in Sources */,
19151927
076D24FB27FC219200970AFC /* LockedChannelMonitor.swift in Sources */,
1916-
074A2DC426D957BC00370D0B /* RegtestBlockchainObserver.swift in Sources */,
1928+
074A2DC426D957BC00370D0B /* RegtestBlockchainObserverOld.swift in Sources */,
19171929
076D231B27FC219000970AFC /* Result_ScorerDecodeErrorZ.swift in Sources */,
19181930
076D241327FC219100970AFC /* Result_ReplyShortChannelIdsEndDecodeErrorZ.swift in Sources */,
19191931
076D249D27FC219200970AFC /* HolderCommitmentTransaction.swift in Sources */,
@@ -2155,6 +2167,7 @@
21552167
076D22DF27FC219000970AFC /* Filter.swift in Sources */,
21562168
076D23EF27FC219100970AFC /* Result_NodeAnnouncementDecodeErrorZ.swift in Sources */,
21572169
076D23AB27FC219100970AFC /* Result_HTLCUpdateDecodeErrorZ.swift in Sources */,
2170+
076D2A6C280399F500970AFC /* RegtestBlockchainManager.swift in Sources */,
21582171
07BBCB1B26D03578000D96C4 /* ldk_net.c in Sources */,
21592172
076D245327FC219200970AFC /* BestBlock.swift in Sources */,
21602173
076D229D27FC219000970AFC /* Option_MonitorEventZ.swift in Sources */,
@@ -2547,6 +2560,9 @@
25472560
076D230C27FC219000970AFC /* C2Tuple_PaymentHashPaymentIdZ.swift in Sources */,
25482561
076D24C827FC219200970AFC /* ChannelDetails.swift in Sources */,
25492562
076D237227FC219100970AFC /* Result_NoneAPIErrorZ.swift in Sources */,
2563+
2DD11F99CF6E547FA7FB9225 /* RegtestBlockchainManager.swift in Sources */,
2564+
2DD11C86114C6827D6E338A2 /* BlockchainObserver.swift in Sources */,
2565+
2DD11F1338488839D8955B7A /* PolarIntegrationTest.swift in Sources */,
25502566
);
25512567
runOnlyForDeploymentPostprocessing = 0;
25522568
};
@@ -2874,15 +2890,15 @@
28742890
/* End XCConfigurationList section */
28752891

28762892
/* Begin XCRemoteSwiftPackageReference section */
2877-
076D1D2927F5163500970AFC /* XCRemoteSwiftPackageReference "swift-crypto" */ = {
2893+
076D1D2927F5163500970AFC /* XCRemoteSwiftPackageReference "swift-crypto.git" */ = {
28782894
isa = XCRemoteSwiftPackageReference;
28792895
repositoryURL = "https://github.com/apple/swift-crypto.git";
28802896
requirement = {
28812897
kind = upToNextMajorVersion;
28822898
minimumVersion = 2.0.0;
28832899
};
28842900
};
2885-
07C753F126D9560200081BF8 /* XCRemoteSwiftPackageReference "PromiseKit" */ = {
2901+
07C753F126D9560200081BF8 /* XCRemoteSwiftPackageReference "PromiseKit.git" */ = {
28862902
isa = XCRemoteSwiftPackageReference;
28872903
repositoryURL = "https://github.com/mxcl/PromiseKit.git";
28882904
requirement = {
@@ -2895,12 +2911,12 @@
28952911
/* Begin XCSwiftPackageProductDependency section */
28962912
076D1D2A27F5163500970AFC /* Crypto */ = {
28972913
isa = XCSwiftPackageProductDependency;
2898-
package = 076D1D2927F5163500970AFC /* XCRemoteSwiftPackageReference "swift-crypto" */;
2914+
package = 076D1D2927F5163500970AFC /* XCRemoteSwiftPackageReference "swift-crypto.git" */;
28992915
productName = Crypto;
29002916
};
29012917
07C753F226D9560200081BF8 /* PromiseKit */ = {
29022918
isa = XCSwiftPackageProductDependency;
2903-
package = 07C753F126D9560200081BF8 /* XCRemoteSwiftPackageReference "PromiseKit" */;
2919+
package = 07C753F126D9560200081BF8 /* XCRemoteSwiftPackageReference "PromiseKit.git" */;
29042920
productName = PromiseKit;
29052921
};
29062922
/* End XCSwiftPackageProductDependency section */

xcode/DirectBindingsApp/DirectBindingsApp/PolarConnectionExperiment.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class PolarConnectionExperiment: ObservableObject {
2525
var keysManager: KeysManager
2626
var keysInterface: KeysInterface
2727

28-
var blockchainObserver: RegtestBlockchainObserver!
28+
var blockchainObserver: RegtestBlockchainObserverOld!
2929

3030
// reliant on async response from blockchain observer
3131
var channelManagerConstructor: ChannelManagerConstructor!
@@ -53,7 +53,7 @@ class PolarConnectionExperiment: ObservableObject {
5353

5454
self.keysInterface = self.keysManager.as_KeysInterface()
5555

56-
self.blockchainObserver = RegtestBlockchainObserver(listeners: [], chainTip: nil) {
56+
self.blockchainObserver = RegtestBlockchainObserverOld(listeners: [], chainTip: nil) {
5757
// sync complete
5858
let config = UserConfig()
5959
let lightningNetwork = LDKNetwork_Regtest

0 commit comments

Comments
 (0)