Skip to content

Commit dbf5fda

Browse files
authored
Merge pull request #44 from synonymdev/feat/backport-uptream-pr-4341
fix: backport upstream electrum sync fix (PR #4341)
2 parents 7b89bda + 1eab136 commit dbf5fda

12 files changed

Lines changed: 26 additions & 9 deletions

File tree

AGENTS.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,9 @@ When bumping the version, ALWAYS update ALL of these files:
228228
# Compare output with the checksum value in Package.swift - they MUST match
229229
```
230230
- Create GitHub release with same name as the tag, upload `LDKNodeFFI.xcframework.zip`
231-
- Add release link at the end of PR description (or as a comment if not your PR):
231+
- **ALWAYS add release link at the end of PR description** (use `gh pr edit` to update the body):
232232
```
233233
### Release
234-
- Release [vN.N.N](link_to_release)
234+
- [vN.N.N](link_to_release)
235235
```
236+
- Only add release as a comment if it's not your PR and you cannot edit the description

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
# 0.7.0-rc.17 (Synonym Fork)
1+
# 0.7.0-rc.18 (Synonym Fork)
22

33
## Bug Fixes
4+
- Backported upstream Electrum sync fix (PR #4341): Skip unconfirmed `get_history` entries in
5+
`ElectrumSyncClient`. Previously, mempool entries (height=0 or -1) were incorrectly treated as
6+
confirmed, causing `get_merkle` to fail for 0-conf channel funding transactions.
47
- Fixed duplicate payment events (`PaymentReceived`, `PaymentSuccessful`, `PaymentFailed`) being
58
emitted when LDK replays events after node restart.
69

Cargo.toml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ldk-node"
3-
version = "0.7.0-rc.17"
3+
version = "0.7.0-rc.18"
44
authors = ["Elias Rohrer <dev@tnull.de>"]
55
homepage = "https://lightningdevkit.org/"
66
license = "MIT OR Apache-2.0"
@@ -118,6 +118,19 @@ check-cfg = [
118118
name = "payments"
119119
harness = false
120120

121+
[patch.crates-io]
122+
lightning = { git = "https://github.com/ovitrif/rust-lightning", branch = "0.2-electrum-fix" }
123+
lightning-types = { git = "https://github.com/ovitrif/rust-lightning", branch = "0.2-electrum-fix" }
124+
lightning-invoice = { git = "https://github.com/ovitrif/rust-lightning", branch = "0.2-electrum-fix" }
125+
lightning-net-tokio = { git = "https://github.com/ovitrif/rust-lightning", branch = "0.2-electrum-fix" }
126+
lightning-persister = { git = "https://github.com/ovitrif/rust-lightning", branch = "0.2-electrum-fix" }
127+
lightning-background-processor = { git = "https://github.com/ovitrif/rust-lightning", branch = "0.2-electrum-fix" }
128+
lightning-rapid-gossip-sync = { git = "https://github.com/ovitrif/rust-lightning", branch = "0.2-electrum-fix" }
129+
lightning-block-sync = { git = "https://github.com/ovitrif/rust-lightning", branch = "0.2-electrum-fix" }
130+
lightning-transaction-sync = { git = "https://github.com/ovitrif/rust-lightning", branch = "0.2-electrum-fix" }
131+
lightning-liquidity = { git = "https://github.com/ovitrif/rust-lightning", branch = "0.2-electrum-fix" }
132+
lightning-macros = { git = "https://github.com/ovitrif/rust-lightning", branch = "0.2-electrum-fix" }
133+
121134
#[patch.crates-io]
122135
#lightning = { path = "../rust-lightning/lightning" }
123136
#lightning-types = { path = "../rust-lightning/lightning-types" }

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.17"
7-
let checksum = "b90aefa8285b7c4b459e107b611840e5f218689797c0dc24e8bb5e8d1208fa56"
6+
let tag = "v0.7.0-rc.18"
7+
let checksum = "05903150276c3c31b2552b89d3781157ac1bbf55a10598655897abd9fe936b6c"
88
let url = "https://github.com/synonymdev/ldk-node/releases/download/\(tag)/LDKNodeFFI.xcframework.zip"
99

1010
let package = Package(

0 commit comments

Comments
 (0)