Skip to content

Commit f3d5b94

Browse files
authored
Merge pull request #1582 from TheBlueMatt/2022-06-0.0.109
Cut 0.0.109
2 parents d9ba7ce + 156cc77 commit f3d5b94

File tree

8 files changed

+91
-21
lines changed

8 files changed

+91
-21
lines changed

CHANGELOG.md

+71-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,73 @@
1+
# 0.0.109 - 2022-06-30
2+
3+
## API Updates
4+
* `ChannelManager::update_channel_config` has been added to allow the fields
5+
in `ChannelConfig` to be changed in a given channel after open (#1527).
6+
* If we reconnect to a peer which proves we have a stale channel state, rather
7+
than force-closing we will instead panic to provide an opportunity to switch
8+
to the latest state and continue operating without channel loss (#1564).
9+
* A `NodeAlias` struct has been added which handles string sanitization for
10+
node aliases via the `Display` trait (#1544).
11+
* `ProbabilisticScoringParameters` now has a `banned_nodes` set which we will
12+
never route through during path finding (#1550).
13+
* `ProbabilisticScoringParameters` now offers an `anti_probing_penalty_msat`
14+
option to prefer channels which afford better privacy when routing (#1555).
15+
* `ProbabilisticScorer` now provides access to its estimated liquidity range
16+
for a given channel via `estimated_channel_liquidity_range` (#1549).
17+
* Options which cannot be changed at runtime have been moved from
18+
`ChannelConfig` to `ChannelHandshakeConfig` (#1529).
19+
* `find_route` takes `&NetworkGraph` instead of `ReadOnlyNetworkGraph (#1583).
20+
* `ChannelDetails` now contains a copy of the current `ChannelConfig` (#1527).
21+
* The `lightning-invoice` crate now optionally depends on `serde`, with
22+
`Invoice` implementing `serde::{Deserialize,Serialize}` if enabled (#1548).
23+
* Several fields in `UserConfig` have been renamed for clarity (#1540).
24+
25+
## Bug Fixes
26+
* `find_route` no longer selects routes with more than
27+
`PaymentParameters::max_mpp_path_count` paths, and
28+
`ChannelManager::send_payment` no longer refuses to send along routes with
29+
more than ten paths (#1526).
30+
* Fixed two cases where HTLCs pending at the time a counterparty broadcasts a
31+
revoked commitment transaction are considered resolved prior to their actual
32+
resolution on-chain, possibly passing the update to another channel (#1486).
33+
* HTLCs which are relayed through LDK may now have a total expiry time two
34+
weeks in the future, up from one, reducing forwarding failures (#1532).
35+
36+
## Serialization Compatibility
37+
* All new fields are ignored by prior versions of LDK. All new fields are not
38+
present when reading objects serialized by prior versions of LDK.
39+
* `ChannelConfig`'s serialization format has changed and is not compatible
40+
with any previous version of LDK. Attempts to read values written by a
41+
previous version of LDK will fail and attempts to read newly written objects
42+
using a previous version of LDK will fail. It is not expected that users are
43+
serializing `ChannelConfig` using the LDK serialization API, however, if a
44+
backward compatibility wrapper is required, please open an issue.
45+
46+
## Security
47+
0.0.109 fixes a denial-of-service vulnerability which is reachable from
48+
untrusted input in some application deployments.
49+
50+
* Third parties which are allowed to open channels with an LDK-based node may
51+
fund a channel with a bogus and maliciously-crafted transaction which, when
52+
spent, can cause a panic in the channel's corresponding `ChannelMonitor`.
53+
Such a channel is never usable as it cannot be funded with a funding
54+
transaction which matches the required output script, allowing the
55+
`ChannelMonitor` for such channels to be safely purged as a workaround on
56+
previous versions of LDK. Thanks to Eugene Siegel for reporting this issue.
57+
58+
In total, this release features 32 files changed, 1948 insertions, 532
59+
deletions in 33 commits from 9 authors, in alphabetical order:
60+
* Antoine Riard
61+
* Daniel Granhão
62+
* Elias Rohrer
63+
* Jeffrey Czyz
64+
* Matt Corallo
65+
* Matt Faltyn
66+
* NicolaLS
67+
* Valentine Wallace
68+
* Wilmer Paulino
69+
70+
171
# 0.0.108 - 2022-06-10
272

373
## Bug Fixes
@@ -148,7 +218,7 @@ deletions in 153 commits from 18 authors, in alphabetical order:
148218
* Jurvis Tan
149219
* Justin Moon
150220
* KaFai Choi
151-
* Mateusz Faltyn
221+
* Matt Faltyn
152222
* Matt Corallo
153223
* Valentine Wallace
154224
* Viktor Tigerström

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.108"
3+
version = "0.0.109"
44
authors = ["Valentine Wallace <[email protected]>"]
55
license = "MIT OR Apache-2.0"
66
repository = "http://github.com/lightningdevkit/rust-lightning"
@@ -15,10 +15,10 @@ rustdoc-args = ["--cfg", "docsrs"]
1515

1616
[dependencies]
1717
bitcoin = "0.28.1"
18-
lightning = { version = "0.0.108", path = "../lightning", features = ["std"] }
19-
lightning-rapid-gossip-sync = { version = "0.0.108", path = "../lightning-rapid-gossip-sync" }
18+
lightning = { version = "0.0.109", path = "../lightning", features = ["std"] }
19+
lightning-rapid-gossip-sync = { version = "0.0.109", path = "../lightning-rapid-gossip-sync" }
2020

2121
[dev-dependencies]
22-
lightning = { version = "0.0.108", path = "../lightning", features = ["_test_utils"] }
23-
lightning-invoice = { version = "0.16.0", path = "../lightning-invoice" }
24-
lightning-persister = { version = "0.0.108", path = "../lightning-persister" }
22+
lightning = { version = "0.0.109", path = "../lightning", features = ["_test_utils"] }
23+
lightning-invoice = { version = "0.17.0", path = "../lightning-invoice" }
24+
lightning-persister = { version = "0.0.109", path = "../lightning-persister" }

lightning-block-sync/Cargo.toml

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

2020
[dependencies]
2121
bitcoin = "0.28.1"
22-
lightning = { version = "0.0.108", path = "../lightning" }
22+
lightning = { version = "0.0.109", path = "../lightning" }
2323
futures = { version = "0.3" }
2424
tokio = { version = "1.0", features = [ "io-util", "net", "time" ], optional = true }
2525
serde = { version = "1.0", features = ["derive"], optional = true }

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.16.0"
4+
version = "0.17.0"
55
authors = ["Sebastian Geisler <[email protected]>"]
66
documentation = "https://docs.rs/lightning-invoice/"
77
license = "MIT OR Apache-2.0"
@@ -20,7 +20,7 @@ std = ["bitcoin_hashes/std", "num-traits/std", "lightning/std", "bech32/std"]
2020

2121
[dependencies]
2222
bech32 = { version = "0.8", default-features = false }
23-
lightning = { version = "0.0.108", path = "../lightning", default-features = false }
23+
lightning = { version = "0.0.109", path = "../lightning", default-features = false }
2424
secp256k1 = { version = "0.22", default-features = false, features = ["recovery", "alloc"] }
2525
num-traits = { version = "0.2.8", default-features = false }
2626
bitcoin_hashes = { version = "0.10", default-features = false }
@@ -29,6 +29,6 @@ core2 = { version = "0.3.0", default-features = false, optional = true }
2929
serde = { version = "1.0.118", optional = true }
3030

3131
[dev-dependencies]
32-
lightning = { version = "0.0.108", path = "../lightning", default-features = false, features = ["_test_utils"] }
32+
lightning = { version = "0.0.109", path = "../lightning", default-features = false, features = ["_test_utils"] }
3333
hex = "0.4"
3434
serde_json = { version = "1"}

lightning-net-tokio/Cargo.toml

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

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

2222
[dev-dependencies]

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.108"
3+
version = "0.0.109"
44
authors = ["Valentine Wallace", "Matt Corallo"]
55
license = "MIT OR Apache-2.0"
66
repository = "https://github.com/lightningdevkit/rust-lightning/"
@@ -17,11 +17,11 @@ _bench_unstable = ["lightning/_bench_unstable"]
1717

1818
[dependencies]
1919
bitcoin = "0.28.1"
20-
lightning = { version = "0.0.108", path = "../lightning" }
20+
lightning = { version = "0.0.109", path = "../lightning" }
2121
libc = "0.2"
2222

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

2626
[dev-dependencies]
27-
lightning = { version = "0.0.108", path = "../lightning", features = ["_test_utils"] }
27+
lightning = { version = "0.0.109", 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.108"
3+
version = "0.0.109"
44
authors = ["Arik Sosman <[email protected]>"]
55
license = "MIT OR Apache-2.0"
66
repository = "https://github.com/lightningdevkit/rust-lightning"
@@ -13,8 +13,8 @@ Utility to process gossip routing data from Rapid Gossip Sync Server.
1313
_bench_unstable = []
1414

1515
[dependencies]
16-
lightning = { version = "0.0.108", path = "../lightning" }
16+
lightning = { version = "0.0.109", path = "../lightning" }
1717
bitcoin = { version = "0.28.1", default-features = false }
1818

1919
[dev-dependencies]
20-
lightning = { version = "0.0.108", path = "../lightning", features = ["_test_utils"] }
20+
lightning = { version = "0.0.109", path = "../lightning", features = ["_test_utils"] }

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.108"
3+
version = "0.0.109"
44
authors = ["Matt Corallo"]
55
license = "MIT OR Apache-2.0"
66
repository = "https://github.com/lightningdevkit/rust-lightning/"

0 commit comments

Comments
 (0)