Skip to content

Commit e2fce94

Browse files
pwltrovitrif
andauthored
feat: add ProbeHandle and probe success/failure events (#77)
* feat: add ProbeHandle and probe success/failure events * chore: update changelog * chore: generate bindings * chore: prepare probe events rc.37 release (#80) --------- Co-authored-by: Ovi Trif <ovitrif@proton.me>
1 parent afcebdf commit e2fce94

25 files changed

Lines changed: 839 additions & 196 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ swift.swiftdoc
2929
*.a
3030
*.d
3131

32+
# macOS Finder metadata (icon positions, view options)
33+
.DS_Store
34+
3235
# IDE and local files
3336
.idea
3437
.build

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 0.7.0-rc.36 (Synonym Fork)
1+
# 0.7.0-rc.37 (Synonym Fork)
22

33
## Bug Fixes
44

@@ -58,6 +58,12 @@
5858

5959
## Synonym Fork Additions
6060

61+
- Added pre-flight probe correlation: `Event::ProbeSuccessful` and `Event::ProbeFailed` (from LDK
62+
probe lifecycle), plus `ProbeHandle` (`payment_id`, synthetic `payment_hash`) values returned
63+
for probes actually dispatched by `Bolt11Payment::send_probes`, `send_probes_using_amount`, and
64+
`SpontaneousPayment::send_probes` (some route paths may be skipped before dispatch). Match
65+
handles to events by `payment_id` (and optionally `payment_hash`); these are not the BOLT11
66+
invoice payment hash. UniFFI: `dictionary ProbeHandle` in `ldk_node.udl`.
6167
- Added `connection_timeout_secs` field to `ElectrumSyncConfig` (default: 10 s). This bounds
6268
Electrum socket operations for both the BDK on-chain and LDK tx-sync clients, preventing Tokio's
6369
blocking thread pool from being exhausted by threads stuck on dead sockets under total packet

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ exclude = ["bindings/uniffi-bindgen"]
44

55
[package]
66
name = "ldk-node"
7-
version = "0.7.0-rc.36"
7+
version = "0.7.0-rc.37"
88
authors = ["Elias Rohrer <dev@tnull.de>"]
99
homepage = "https://lightningdevkit.org/"
1010
license = "MIT OR Apache-2.0"

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
import PackageDescription
55

6-
let tag = "v0.7.0-rc.36"
7-
let checksum = "de56fe19149808ccc5e517047ea7bf6b4d5d2c2e33d3ad539ef0155bf1aec8f7"
6+
let tag = "v0.7.0-rc.37"
7+
let checksum = "31ca289fb94221bf1a0077532a868d1e19912f19760735697023066b1160eea7"
88
let url = "https://github.com/synonymdev/ldk-node/releases/download/\(tag)/LDKNodeFFI.xcframework.zip"
99

1010
let package = Package(

bindings/kotlin/.editorconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# ktlint uses EditorConfig for indentation. Without this file it defaults to
2+
# 2 spaces for Kotlin script, while Gradle/IntelliJ convention here is 4 spaces.
3+
root = true
4+
5+
[*.{kt,kts}]
6+
indent_style = space
7+
indent_size = 4

bindings/kotlin/ldk-node-android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ android.useAndroidX=true
33
android.enableJetifier=true
44
kotlin.code.style=official
55
group=com.synonym
6-
version=0.7.0-rc.36
6+
version=0.7.0-rc.37
Binary file not shown.
Binary file not shown.
Binary file not shown.

bindings/kotlin/ldk-node-android/lib/src/main/kotlin/org/lightningdevkit/ldknode/ldk_node.android.kt

Lines changed: 127 additions & 41 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)