Skip to content

Commit b734735

Browse files
authored
Merge pull request #2211 from TheBlueMatt/2023-04-0.0.115-cut
Cut 0.0.115
2 parents ec3aa49 + dafa095 commit b734735

File tree

14 files changed

+124
-42
lines changed

14 files changed

+124
-42
lines changed

CHANGELOG.md

+97
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,100 @@
1+
# 0.0.115 - Apr 24, 2023 - "Rebroadcast the Bugfixes"
2+
3+
## API Updates
4+
* The MSRV of the main LDK crates has been increased to 1.48 (#2107).
5+
* Attempting to claim an un-expired payment on a channel which has closed no
6+
longer fails. The expiry time of payments is exposed via
7+
`PaymentClaimable::claim_deadline` (#2148).
8+
* `payment_metadata` is now supported in `Invoice` deserialization, sending,
9+
and receiving (via a new `RecipientOnionFields` struct) (#2139, #2127).
10+
* `Event::PaymentFailed` now exposes a failure reason (#2142).
11+
* BOLT12 messages now support stateless generation and validation (#1989).
12+
* The `NetworkGraph` is now pruned of stale data after RGS processing (#2161).
13+
* Max inbound HTLCs in-flight can be changed in the handshake config (#2138).
14+
* `lightning-transaction-sync` feature `esplora-async-https` was added (#2085).
15+
* A `ChannelPending` event is now emitted after the initial handshake (#2098).
16+
* `PaymentForwarded::outbound_amount_forwarded_msat` was added (#2136).
17+
* `ChannelManager::list_channels_by_counterparty` was added (#2079).
18+
* `ChannelDetails::feerate_sat_per_1000_weight` was added (#2094).
19+
* `Invoice::fallback_addresses` was added to fetch `bitcoin` types (#2023).
20+
* The offer/refund description is now exposed in `Invoice{,Request}` (#2206).
21+
22+
## Backwards Compatibility
23+
* Payments sent with the legacy `*_with_route` methods on LDK 0.0.115+ will no
24+
longer be retryable via the LDK 0.0.114- `retry_payment` method (#2139).
25+
* `Event::PaymentPathFailed::retry` was removed and will always be `None` for
26+
payments initiated on 0.0.115 which fail on an earlier version (#2063).
27+
* `Route`s and `PaymentParameters` with blinded path information will not be
28+
readable on prior versions of LDK. Such objects are not currently constructed
29+
by LDK, but may be when processing BOLT12 data in a coming release (#2146).
30+
* Providing `ChannelMonitorUpdate`s generated by LDK 0.0.115 to a
31+
`ChannelMonitor` on 0.0.114 or before may panic (#2059). Note that this is
32+
in general unsupported, and included here only for completeness.
33+
34+
## Bug Fixes
35+
* Fixed a case where `process_events_async` may `poll` a `Future` which has
36+
already completed (#2081).
37+
* Fixed deserialization of `u16` arrays. This bug may have previously corrupted
38+
the historical buckets in a `ProbabilisticScorer`. Users relying on the
39+
historical buckets may wish to wipe their scorer on upgrade to remove corrupt
40+
data rather than waiting on it to decay (#2191).
41+
* The `process_events_async` task is now `Send` and can thus be polled on a
42+
multi-threaded runtime (#2199).
43+
* Fixed a missing macro export causing
44+
`impl_writeable_tlv_based_enum{,_upgradable}` calls to not compile (#2091).
45+
* Fixed compilation of `lightning-invoice` with both `no-std` and serde (#2187)
46+
* Fix an issue where the `background-processor` would not wake when a
47+
`ChannelMonitorUpdate` completed asynchronously, causing delays (#2090).
48+
* Fix an issue where `process_events_async` would exit immediately (#2145).
49+
* `Router` calls from the `ChannelManager` now call `find_route_with_id` rather
50+
than `find_route`, as was intended and described in the API (#2092).
51+
* Ensure `process_events_async` always exits if any sleep future returns true,
52+
not just if all sleep futures repeatedly return true (#2145).
53+
* `channel_update` messages no longer set the disable bit unless the peer has
54+
been disconnected for some time. This should resolve cases where channels are
55+
disabled for extended periods of time (#2198).
56+
* We no longer remove CLN nodes from the network graph for violating the BOLT
57+
spec in some cases after failing to pay through them (#2220).
58+
* Fixed a debug assertion which may panic under heavy load (#2172).
59+
* `CounterpartyForceClosed::peer_msg` is now wrapped in UntrustedString (#2114)
60+
* Fixed a potential deadlock in `funding_transaction_generated` (#2158).
61+
62+
## Security
63+
* Transaction re-broadcasting is now substantially more aggressive, including a
64+
new regular rebroadcast feature called on a timer from the
65+
`background-processor` or from `ChainMonitor::rebroadcast_pending_claims`.
66+
This should substantially increase transaction confirmation reliability
67+
without relying on downstream `TransactionBroadcaster` implementations for
68+
rebroadcasting (#2203, #2205, #2208).
69+
* Implemented the changes from BOLT PRs #1031, #1032, and #1040 which resolve a
70+
privacy vulnerability which allows an intermediate node on the path to
71+
discover the final destination for a payment (#2062).
72+
73+
In total, this release features 110 files changed, 11928 insertions, 6368
74+
deletions in 215 commits from 21 authors, in alphabetical order:
75+
* Advait
76+
* Alan Cohen
77+
* Alec Chen
78+
* Allan Douglas R. de Oliveira
79+
* Arik Sosman
80+
* Elias Rohrer
81+
* Evan Feenstra
82+
* Jeffrey Czyz
83+
* John Cantrell
84+
* Lucas Soriano del Pino
85+
* Marc Tyndel
86+
* Matt Corallo
87+
* Paul Miller
88+
* Steven
89+
* Steven Williamson
90+
* Steven Zhao
91+
* Tony Giorgio
92+
* Valentine Wallace
93+
* Wilmer Paulino
94+
* benthecarman
95+
* munjesi
96+
97+
198
# 0.0.114 - Mar 3, 2023 - "Faster Async BOLT12 Retries"
299

3100
## API Updates

lightning-background-processor/Cargo.toml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lightning-background-processor"
3-
version = "0.0.114"
3+
version = "0.0.115"
44
authors = ["Valentine Wallace <[email protected]>"]
55
license = "MIT OR Apache-2.0"
66
repository = "http://github.com/lightningdevkit/rust-lightning"
@@ -21,11 +21,11 @@ default = ["std"]
2121

2222
[dependencies]
2323
bitcoin = { version = "0.29.0", default-features = false }
24-
lightning = { version = "0.0.114", path = "../lightning", default-features = false }
25-
lightning-rapid-gossip-sync = { version = "0.0.114", path = "../lightning-rapid-gossip-sync", default-features = false }
24+
lightning = { version = "0.0.115", path = "../lightning", default-features = false }
25+
lightning-rapid-gossip-sync = { version = "0.0.115", path = "../lightning-rapid-gossip-sync", default-features = false }
2626

2727
[dev-dependencies]
2828
tokio = { version = "1.14", features = [ "macros", "rt", "rt-multi-thread", "sync", "time" ] }
29-
lightning = { version = "0.0.114", path = "../lightning", features = ["_test_utils"] }
30-
lightning-invoice = { version = "0.22.0", path = "../lightning-invoice" }
31-
lightning-persister = { version = "0.0.114", path = "../lightning-persister" }
29+
lightning = { version = "0.0.115", path = "../lightning", features = ["_test_utils"] }
30+
lightning-invoice = { version = "0.23.0", path = "../lightning-invoice" }
31+
lightning-persister = { version = "0.0.115", path = "../lightning-persister" }

lightning-block-sync/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lightning-block-sync"
3-
version = "0.0.114"
3+
version = "0.0.115"
44
authors = ["Jeffrey Czyz", "Matt Corallo"]
55
license = "MIT OR Apache-2.0"
66
repository = "http://github.com/lightningdevkit/rust-lightning"
@@ -19,11 +19,11 @@ rpc-client = [ "serde_json", "chunked_transfer" ]
1919

2020
[dependencies]
2121
bitcoin = "0.29.0"
22-
lightning = { version = "0.0.114", path = "../lightning" }
22+
lightning = { version = "0.0.115", path = "../lightning" }
2323
tokio = { version = "1.0", features = [ "io-util", "net", "time" ], optional = true }
2424
serde_json = { version = "1.0", optional = true }
2525
chunked_transfer = { version = "1.4", optional = true }
2626

2727
[dev-dependencies]
28-
lightning = { version = "0.0.114", path = "../lightning", features = ["_test_utils"] }
28+
lightning = { version = "0.0.115", path = "../lightning", features = ["_test_utils"] }
2929
tokio = { version = "1.14", features = [ "macros", "rt" ] }

lightning-custom-message/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lightning-custom-message"
3-
version = "0.0.114"
3+
version = "0.0.115"
44
authors = ["Jeffrey Czyz"]
55
license = "MIT OR Apache-2.0"
66
repository = "http://github.com/lightningdevkit/rust-lightning"
@@ -15,4 +15,4 @@ rustdoc-args = ["--cfg", "docsrs"]
1515

1616
[dependencies]
1717
bitcoin = "0.29.0"
18-
lightning = { version = "0.0.114", path = "../lightning" }
18+
lightning = { version = "0.0.115", path = "../lightning" }

lightning-invoice/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "lightning-invoice"
33
description = "Data structures to parse and serialize BOLT11 lightning invoices"
4-
version = "0.22.0"
4+
version = "0.23.0"
55
authors = ["Sebastian Geisler <[email protected]>"]
66
documentation = "https://docs.rs/lightning-invoice/"
77
license = "MIT OR Apache-2.0"
@@ -21,7 +21,7 @@ std = ["bitcoin_hashes/std", "num-traits/std", "lightning/std", "bech32/std"]
2121

2222
[dependencies]
2323
bech32 = { version = "0.9.0", default-features = false }
24-
lightning = { version = "0.0.114", path = "../lightning", default-features = false }
24+
lightning = { version = "0.0.115", path = "../lightning", default-features = false }
2525
secp256k1 = { version = "0.24.0", default-features = false, features = ["recovery", "alloc"] }
2626
num-traits = { version = "0.2.8", default-features = false }
2727
bitcoin_hashes = { version = "0.11", default-features = false }
@@ -30,6 +30,6 @@ serde = { version = "1.0.118", optional = true }
3030
bitcoin = { version = "0.29.0", default-features = false }
3131

3232
[dev-dependencies]
33-
lightning = { version = "0.0.114", path = "../lightning", default-features = false, features = ["_test_utils"] }
33+
lightning = { version = "0.0.115", path = "../lightning", default-features = false, features = ["_test_utils"] }
3434
hex = "0.4"
3535
serde_json = { version = "1"}

lightning-net-tokio/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lightning-net-tokio"
3-
version = "0.0.114"
3+
version = "0.0.115"
44
authors = ["Matt Corallo"]
55
license = "MIT OR Apache-2.0"
66
repository = "https://github.com/lightningdevkit/rust-lightning/"
@@ -16,9 +16,9 @@ rustdoc-args = ["--cfg", "docsrs"]
1616

1717
[dependencies]
1818
bitcoin = "0.29.0"
19-
lightning = { version = "0.0.114", path = "../lightning" }
19+
lightning = { version = "0.0.115", path = "../lightning" }
2020
tokio = { version = "1.0", features = [ "io-util", "macros", "rt", "sync", "net", "time" ] }
2121

2222
[dev-dependencies]
2323
tokio = { version = "1.14", features = [ "io-util", "macros", "rt", "rt-multi-thread", "sync", "net", "time" ] }
24-
lightning = { version = "0.0.114", path = "../lightning", features = ["_test_utils"] }
24+
lightning = { version = "0.0.115", path = "../lightning", features = ["_test_utils"] }

lightning-persister/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lightning-persister"
3-
version = "0.0.114"
3+
version = "0.0.115"
44
authors = ["Valentine Wallace", "Matt Corallo"]
55
license = "MIT OR Apache-2.0"
66
repository = "https://github.com/lightningdevkit/rust-lightning/"
@@ -18,11 +18,11 @@ _bench_unstable = ["lightning/_bench_unstable"]
1818

1919
[dependencies]
2020
bitcoin = "0.29.0"
21-
lightning = { version = "0.0.114", path = "../lightning" }
21+
lightning = { version = "0.0.115", path = "../lightning" }
2222
libc = "0.2"
2323

2424
[target.'cfg(windows)'.dependencies]
2525
winapi = { version = "0.3", features = ["winbase"] }
2626

2727
[dev-dependencies]
28-
lightning = { version = "0.0.114", path = "../lightning", features = ["_test_utils"] }
28+
lightning = { version = "0.0.115", path = "../lightning", features = ["_test_utils"] }

lightning-rapid-gossip-sync/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lightning-rapid-gossip-sync"
3-
version = "0.0.114"
3+
version = "0.0.115"
44
authors = ["Arik Sosman <[email protected]>"]
55
license = "MIT OR Apache-2.0"
66
repository = "https://github.com/lightningdevkit/rust-lightning"
@@ -16,8 +16,8 @@ std = ["lightning/std"]
1616
_bench_unstable = []
1717

1818
[dependencies]
19-
lightning = { version = "0.0.114", path = "../lightning", default-features = false }
19+
lightning = { version = "0.0.115", path = "../lightning", default-features = false }
2020
bitcoin = { version = "0.29.0", default-features = false }
2121

2222
[dev-dependencies]
23-
lightning = { version = "0.0.114", path = "../lightning", features = ["_test_utils"] }
23+
lightning = { version = "0.0.115", path = "../lightning", features = ["_test_utils"] }

lightning-transaction-sync/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lightning-transaction-sync"
3-
version = "0.0.114"
3+
version = "0.0.115"
44
authors = ["Elias Rohrer"]
55
license = "MIT OR Apache-2.0"
66
repository = "http://github.com/lightningdevkit/rust-lightning"
@@ -21,15 +21,15 @@ esplora-blocking = ["esplora-client/blocking"]
2121
async-interface = []
2222

2323
[dependencies]
24-
lightning = { version = "0.0.114", path = "../lightning", default-features = false }
24+
lightning = { version = "0.0.115", path = "../lightning", default-features = false }
2525
bitcoin = { version = "0.29.0", default-features = false }
2626
bdk-macros = "0.6"
2727
futures = { version = "0.3", optional = true }
2828
esplora-client = { version = "0.4", default-features = false, optional = true }
2929
reqwest = { version = "0.11", optional = true, default-features = false, features = ["json"] }
3030

3131
[dev-dependencies]
32-
lightning = { version = "0.0.114", path = "../lightning", features = ["std"] }
32+
lightning = { version = "0.0.115", path = "../lightning", features = ["std"] }
3333
electrsd = { version = "0.22.0", features = ["legacy", "esplora_a33e97e1", "bitcoind_23_0"] }
3434
electrum-client = "0.12.0"
3535
tokio = { version = "1.14.0", features = ["full"] }

lightning/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lightning"
3-
version = "0.0.114"
3+
version = "0.0.115"
44
authors = ["Matt Corallo"]
55
license = "MIT OR Apache-2.0"
66
repository = "https://github.com/lightningdevkit/rust-lightning/"

pending_changelog/2059.txt

-4
This file was deleted.

pending_changelog/2063.txt

-4
This file was deleted.

pending_changelog/2146.txt

-4
This file was deleted.

pending_changelog/matt-rm-retryable-secret.txt

-3
This file was deleted.

0 commit comments

Comments
 (0)