Skip to content

Commit 4d00ff2

Browse files
committed
Don't dangle channel manager upon construction
1 parent d1a191a commit 4d00ff2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/swift.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ jobs:
2121
# git checkout origin/2021-03-java-bindings-base
2222
# git checkout v0.0.100
2323
git checkout dba15b73610e4f54378782e55874fc694bf8bda9
24+
echo "rust-lightning commit hash:"
2425
git rev-parse HEAD
2526
cd ..
2627
git clone https://github.com/lightningdevkit/ldk-c-bindings
2728
cd ldk-c-bindings
2829
git checkout v0.0.100.1
30+
echo "ldk-c-bindings commit hash:"
2931
git rev-parse HEAD
3032
cd ..
3133
- name: Install native Rust toolchain, Valgrind, and build utilitis

bindings/batteries/ChannelManagerConstructor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public class ChannelManagerConstructor {
8080

8181
let latestBlockHash = Bindings.LDKThirtyTwoBytes_to_array(nativeType: channelManagerResult.cOpaqueStruct!.contents.result.pointee.a)
8282
let channelManager = ChannelManager(pointer: channelManagerResult.cOpaqueStruct!.contents.result.pointee.b)
83-
try! channelManager.dangle().addAnchor(anchor: channelManagerResult)
83+
try! channelManager.addAnchor(anchor: channelManagerResult)
8484

8585

8686
self.channelManager = channelManager

0 commit comments

Comments
 (0)