Skip to content

Commit b058a25

Browse files
committed
Fix graph sync test memory leak
1 parent e8cb217 commit b058a25

File tree

11 files changed

+890
-37
lines changed

11 files changed

+890
-37
lines changed

bindings/LDK/Bindings.swift

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

64956495
public class func get_ldk_swift_bindings_version() -> String {
6496-
return "ac7068d0d8b0ad2dbb283600ff63e4ad42af2fc0"
6496+
return "e8cb2170ad6613f76c8a5a95941b8b8e2f90b5e1"
64976497
}
64986498

64996499
}

bindings/LDK/structs/ChannelTypeFeatures.swift

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,66 @@ ChannelTypeFeatures_write(objPointer)
8282
return Result_ChannelTypeFeaturesDecodeErrorZ(pointer: ChannelTypeFeatures_read(serWrapper.cOpaqueStruct!));
8383
}
8484

85+
public func set_static_remote_key_optional() -> Void {
86+
87+
let this_argPointer = UnsafeMutablePointer<LDKChannelTypeFeatures>.allocate(capacity: 1)
88+
this_argPointer.initialize(to: self.cOpaqueStruct!)
89+
90+
return ChannelTypeFeatures_set_static_remote_key_optional(this_argPointer);
91+
}
92+
93+
public func set_static_remote_key_required() -> Void {
94+
95+
let this_argPointer = UnsafeMutablePointer<LDKChannelTypeFeatures>.allocate(capacity: 1)
96+
this_argPointer.initialize(to: self.cOpaqueStruct!)
97+
98+
return ChannelTypeFeatures_set_static_remote_key_required(this_argPointer);
99+
}
100+
101+
public func supports_static_remote_key() -> Bool {
102+
103+
return withUnsafePointer(to: self.cOpaqueStruct!) { (this_argPointer: UnsafePointer<LDKChannelTypeFeatures>) in
104+
ChannelTypeFeatures_supports_static_remote_key(this_argPointer)
105+
};
106+
}
107+
108+
public func requires_static_remote_key() -> Bool {
109+
110+
return withUnsafePointer(to: self.cOpaqueStruct!) { (this_argPointer: UnsafePointer<LDKChannelTypeFeatures>) in
111+
ChannelTypeFeatures_requires_static_remote_key(this_argPointer)
112+
};
113+
}
114+
115+
public func set_scid_privacy_optional() -> Void {
116+
117+
let this_argPointer = UnsafeMutablePointer<LDKChannelTypeFeatures>.allocate(capacity: 1)
118+
this_argPointer.initialize(to: self.cOpaqueStruct!)
119+
120+
return ChannelTypeFeatures_set_scid_privacy_optional(this_argPointer);
121+
}
122+
123+
public func set_scid_privacy_required() -> Void {
124+
125+
let this_argPointer = UnsafeMutablePointer<LDKChannelTypeFeatures>.allocate(capacity: 1)
126+
this_argPointer.initialize(to: self.cOpaqueStruct!)
127+
128+
return ChannelTypeFeatures_set_scid_privacy_required(this_argPointer);
129+
}
130+
131+
public func supports_scid_privacy() -> Bool {
132+
133+
return withUnsafePointer(to: self.cOpaqueStruct!) { (this_argPointer: UnsafePointer<LDKChannelTypeFeatures>) in
134+
ChannelTypeFeatures_supports_scid_privacy(this_argPointer)
135+
};
136+
}
137+
138+
public func requires_scid_privacy() -> Bool {
139+
140+
return withUnsafePointer(to: self.cOpaqueStruct!) { (this_argPointer: UnsafePointer<LDKChannelTypeFeatures>) in
141+
ChannelTypeFeatures_requires_scid_privacy(this_argPointer)
142+
};
143+
}
144+
85145
internal func free() -> Void {
86146

87147
return ChannelTypeFeatures_free(self.cOpaqueStruct!);

0 commit comments

Comments
 (0)