Skip to content

Commit 8bf96f6

Browse files
committed
Disable ownability check
1 parent 4ef4557 commit 8bf96f6

File tree

105 files changed

+122
-324
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+122
-324
lines changed

.github/workflows/swift.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ jobs:
5656
python ci/fix_header_includes.py
5757
- name: Generate (copy for debugging) Swift bindings and copy batteries
5858
run: |
59-
# python ./ # Generate bindings
59+
python ./ # Generate bindings
6060
6161
# TODO: switch back to generation method after debugging
62-
mkdir -p ci/LDKSwift/Sources/LDKSwift
63-
cp -a bindings/LDK/. ci/LDKSwift/Sources/LDKSwift
62+
# mkdir -p ci/LDKSwift/Sources/LDKSwift
63+
# cp -a bindings/LDK/. ci/LDKSwift/Sources/LDKSwift
6464
6565
cp -R bindings/batteries ci/LDKSwift/Sources/LDKSwift
6666
env:

bindings/LDK/structs/AcceptChannel.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,13 +241,11 @@ AcceptChannel_write(objPointer)
241241

242242

243243
deinit {
244-
if self.cOpaqueStruct?.is_owned == false {
245-
244+
246245

247246

248247
AcceptChannel_free(self.cOpaqueStruct!)
249248

250-
}
251249

252250
}
253251

bindings/LDK/structs/AnnouncementSignatures.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,11 @@ AnnouncementSignatures_write(objPointer)
9696

9797

9898
deinit {
99-
if self.cOpaqueStruct?.is_owned == false {
100-
99+
101100

102101

103102
AnnouncementSignatures_free(self.cOpaqueStruct!)
104103

105-
}
106104

107105
}
108106

bindings/LDK/structs/BackgroundProcessor.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,11 @@ BackgroundProcessor_start(persister.cOpaqueStruct!, event_handler.cOpaqueStruct!
2828

2929

3030
deinit {
31-
if self.cOpaqueStruct?.is_owned == false {
32-
31+
3332

3433

3534
BackgroundProcessor_free(self.cOpaqueStruct!)
3635

37-
}
3836

3937
}
4038

bindings/LDK/structs/BestBlock.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,11 @@ BestBlock_height(this_argPointer)
3838

3939

4040
deinit {
41-
if self.cOpaqueStruct?.is_owned == false {
42-
41+
4342

4443

4544
BestBlock_free(self.cOpaqueStruct!)
4645

47-
}
4846

4947
}
5048

bindings/LDK/structs/BuiltCommitmentTransaction.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,11 @@ BuiltCommitmentTransaction_sign(this_argPointer, funding_keyPointer, Bindings.ne
8282

8383

8484
deinit {
85-
if self.cOpaqueStruct?.is_owned == false {
86-
85+
8786

8887

8988
BuiltCommitmentTransaction_free(self.cOpaqueStruct!)
9089

91-
}
9290

9391
}
9492

bindings/LDK/structs/ChainMonitor.swift

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@ public class ChainMonitor {
44

55
/* DEFAULT_CONSTRUCTOR_START */
66
public init(chain_source: Filter?, broadcaster: BroadcasterInterface, logger: Logger, feeest: FeeEstimator, persister: Persist) {
7-
7+
88
var chain_sourcePointer: UnsafeMutablePointer<LDKFilter>? = nil
99
if let chain_sourceUnwrapped = chain_source {
1010
chain_sourcePointer = UnsafeMutablePointer<LDKFilter>.allocate(capacity: 1)
1111
chain_sourcePointer!.initialize(to: chain_sourceUnwrapped.cOpaqueStruct!)
1212
}
13-
13+
1414
self.cOpaqueStruct = ChainMonitor_new(chain_sourcePointer, broadcaster.cOpaqueStruct!, logger.cOpaqueStruct!, feeest.cOpaqueStruct!, persister.cOpaqueStruct!)
15-
chain_sourcePointer?.deallocate()
1615
}
1716
/* DEFAULT_CONSTRUCTOR_END */
1817

@@ -23,45 +22,43 @@ public class ChainMonitor {
2322
/* STRUCT_METHODS_START */
2423

2524
public func as_Listen() -> Listen {
26-
25+
2726
return NativelyImplementedListen(pointer: withUnsafePointer(to: self.cOpaqueStruct!) { (this_argPointer: UnsafePointer<LDKChainMonitor>) in
2827
ChainMonitor_as_Listen(this_argPointer)
2928
});
3029
}
3130

3231
public func as_Confirm() -> Confirm {
33-
32+
3433
return NativelyImplementedConfirm(pointer: withUnsafePointer(to: self.cOpaqueStruct!) { (this_argPointer: UnsafePointer<LDKChainMonitor>) in
3534
ChainMonitor_as_Confirm(this_argPointer)
3635
});
3736
}
3837

3938
public func as_Watch() -> Watch {
40-
39+
4140
return NativelyImplementedWatch(pointer: withUnsafePointer(to: self.cOpaqueStruct!) { (this_argPointer: UnsafePointer<LDKChainMonitor>) in
4241
ChainMonitor_as_Watch(this_argPointer)
4342
});
4443
}
4544

4645
public func as_EventsProvider() -> EventsProvider {
47-
46+
4847
return NativelyImplementedEventsProvider(pointer: withUnsafePointer(to: self.cOpaqueStruct!) { (this_argPointer: UnsafePointer<LDKChainMonitor>) in
4948
ChainMonitor_as_EventsProvider(this_argPointer)
5049
});
5150
}
5251

53-
52+
5453
deinit {
55-
if self.cOpaqueStruct?.is_owned == false {
56-
57-
58-
54+
55+
56+
5957
ChainMonitor_free(self.cOpaqueStruct!)
60-
61-
}
62-
58+
59+
6360
}
64-
61+
6562
/* STRUCT_METHODS_END */
6663

6764
}

bindings/LDK/structs/ChainParameters.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,11 @@ ChainParameters(pointer: ChainParameters_clone(origPointer))
5454

5555

5656
deinit {
57-
if self.cOpaqueStruct?.is_owned == false {
58-
57+
5958

6059

6160
ChainParameters_free(self.cOpaqueStruct!)
6261

63-
}
6462

6563
}
6664

bindings/LDK/structs/ChannelAnnouncement.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,11 @@ ChannelAnnouncement_write(objPointer)
111111

112112

113113
deinit {
114-
if self.cOpaqueStruct?.is_owned == false {
115-
114+
116115

117116

118117
ChannelAnnouncement_free(self.cOpaqueStruct!)
119118

120-
}
121119

122120
}
123121

bindings/LDK/structs/ChannelConfig.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,11 @@ ChannelConfig_write(objPointer)
111111

112112

113113
deinit {
114-
if self.cOpaqueStruct?.is_owned == false {
115-
114+
116115

117116

118117
ChannelConfig_free(self.cOpaqueStruct!)
119118

120-
}
121119

122120
}
123121

0 commit comments

Comments
 (0)