Skip to content

Commit c5c2aaf

Browse files
committed
Improve docs and testing.
1 parent a874a45 commit c5c2aaf

File tree

5 files changed

+34296
-9
lines changed

5 files changed

+34296
-9
lines changed

ci/LDKSwift/Sources/LDKSwift/batteries/ChannelManagerConstructor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public class ChannelManagerConstructor: NativeTypeWrapper {
103103
/**
104104
* A list of ChannelMonitors and the last block they each saw. You should sync the blockchain on each individually
105105
* starting with the block that builds on the hash given.
106-
* After doing so (and syncing the blockchain on the channel manager as well), you should call chain_sync_completed()
106+
* After doing so (and syncing the blockchain on the channel manager as well), you should call chainSyncCompleted()
107107
* and then continue to normal application operation.
108108
*/
109109
public private(set) var channel_monitors: [(ChannelMonitor, [UInt8])]

ci/LDKSwift/Tests/LDKSwiftTests/LDKSwiftTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ class LDKSwiftTests: XCTestCase {
244244
let channelOpenError = channelOpenResult.getError()!
245245
print("error type: \(channelOpenError.getValueType())")
246246

247+
// verify that error details can be accessed without memory access issues
247248
if let misuseError = channelOpenError.getValueAsApiMisuseError() {
248249
print("misuse error: \(misuseError.getErr())")
249250
} else if let unavailableError = channelOpenError.getValueAsChannelUnavailable() {

0 commit comments

Comments
 (0)