Skip to content

Commit 4ae65e8

Browse files
authored
Merge pull request #1712 from TheBlueMatt/2022-09-111
Cut 0.0.111
2 parents 990e346 + f5473d5 commit 4ae65e8

File tree

10 files changed

+114
-22
lines changed

10 files changed

+114
-22
lines changed

CHANGELOG.md

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,97 @@
1+
# 0.0.111 - Sep 12, 2022 - "Saturated with Messages"
2+
3+
## API Updates
4+
* Support for relaying onion messages has been added via a new
5+
`OnionMessenger` struct when passed as the `OnionMessageHandler` to a
6+
`PeerManager`. Pre-encoded onion messages can also be sent and received
7+
(#1503, #1650, #1652, #1688).
8+
* Rate-limiting of outbound gossip syncs has been rewritten to utilize less
9+
buffering inside LDK. The new rate-limiting is also used for onion messages
10+
to avoid delaying other messages (#1604. #1660, #1683).
11+
* Rather than spawning a full OS thread, `lightning-background-processor` has
12+
a new `process_events_async` method which takes the place of a
13+
`BackgroundProcessor` for those using Rust's async (#1657).
14+
* `ChannelManager::get_persistable_update_future` has been added to block on
15+
a ChannelManager needing re-persistence in a Rust async environment (#1657).
16+
* The `Filter::register_output` return value has been removed, as it was
17+
very difficult to correctly implement (i.e., without blocking). Users
18+
previously using it should instead pass dependent transactions in via
19+
additional `chain::Confirm::transactions_confirmed` calls (#1663).
20+
* `ChannelHandshakeConfig::their_channel_reserve_proportional_millionths` has
21+
been added to allow configuring counterparty reserve values (#1619).
22+
* `KeysInterface::ecdh` has been added as an ECDH oracle (#1503, #1658).
23+
* The `rust-bitcoin` dependency has been updated 0.29 (#1658).
24+
* The `bitcoin_hashes` dependency has been updated 0.11 (#1677).
25+
* `ChannelManager::broadcast_node_announcement` has been moved to
26+
`PeerManager` (#1699).
27+
* `channel_` and `node_announcement`s are now rebroadcast automatically to all
28+
new peers which connect (#1699).
29+
* `{Init,Node}Features` sent to peers/broadcasted are now fetched via the
30+
various `*MessageHandler` traits, rather than hard-coded (#1701, #1688).
31+
* `Event::PaymentPathFailed::rejected_by_dest` has been renamed
32+
`payment_failed_permanently` (#1702).
33+
* `Invoice` now derives the std `Hash` trait (#1575).
34+
* `{Signed,}RawInvoice::hash` have been renamed `signable_hash` (#1714).
35+
* `chain::AccessError` now derives the std `Debug` trait (#1709).
36+
* `ReadOnlyNetworkGraph::list_{channels,nodes}` have been added largely for
37+
users of downstream bindings (#1651).
38+
* `ChannelMonitor::get_counterparty_node_id` is now available (#1635).
39+
40+
## Bug Fixes
41+
* The script compared with that returned from `chain::Access` was incorrect
42+
~half of the time, causing spurious gossip rejection (#1666).
43+
* Pending in-flight HTLCs are now considered when calculating new routes,
44+
ensuring, e.g. MPP retries do not take known-saturated paths (#1643).
45+
* Counterparty-revoked outputs are now included in `get_claimable_balance`
46+
output via a new `Balance::CounterpartyRevokedOutputClaimable` (#1495).
47+
* Inbound HTLCs for which we do not (yet) have a preimage are now included in
48+
`get_claimable_balance` via a `Balance::MaybePreimageClaimableHTLC` (#1673).
49+
* Probes that fail prior to being sent over their first hop are correctly
50+
failed with a `Event::ProbeFailed` rather than a `PaymentPathFailed` (#1704).
51+
* Pending `Event::HTLCHandlingFailed`s are no longer lost on restart (#1700).
52+
* HTLCs that fail prior to being sent over their first hop are now marked as
53+
retryable via `!PaymentPathFailed::payment_failed_permanently` (#1702).
54+
* Dust HTLCs are now considered failed in the payment tracking logic after the
55+
commitment transaction confirms, allowing retry on restart (#1691).
56+
* On machines with buggy "monotonic" clocks, LDK will no longer panic if time
57+
goes backwards (#1692).
58+
59+
## Backwards Compatibility
60+
* The new `current_time` argument to `PeerManager` constructors must be set to
61+
a UNIX timestamp for upgraded nodes; new nodes may use a counter (#1699).
62+
* `Balance::CounterpartyRevokedOutputClaimable` will never be generated for
63+
channels that were observed to go on-chain with LDK versions prior to
64+
0.0.111 (#1495).
65+
* `ChannelMonitor::get_counterparty_node_id` will return `None` for all
66+
channels opened on a version of LDK prior to 0.0.110 (#1635).
67+
* Setting `their_channel_reserve_proportional_millionths` to any value other
68+
than the default will cause LDK versions prior to 0.0.104 to be unable to
69+
read the serialized `ChannelManager` (#1619).
70+
71+
## Security
72+
0.0.111 fixes a denial-of-service vulnerability which is reachable from
73+
untrusted input in deployments accepting 0conf channels, or via a race-condition
74+
in deployments creating outbound 0conf channels.
75+
76+
* LDK versions prior to 0.0.111 may spuriously panic when receiving a block if
77+
they are awaiting the construction of a funding transaction for a 0-conf
78+
channel (#1711). 0-conf support was added in LDK version 0.0.107.
79+
80+
In total, this release features 84 files changed, 6306 insertions, 1960
81+
deletions in 121 commits from 11 authors, in alphabetical order:
82+
* Arik Sosman
83+
* Devrandom
84+
* Duncan Dean
85+
* Elias Rohrer
86+
* Gursharan Singh
87+
* Matt Corallo
88+
* NicolaLS
89+
* Valentine Wallace
90+
* Viktor Tigerström
91+
* jurvis
92+
* ok300
93+
94+
195
# 0.0.110 - 2022-07-26 - "Routing, With a Vengeance"
296

397
## API Updates

lightning-background-processor/Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lightning-background-processor"
3-
version = "0.0.110"
3+
version = "0.0.111"
44
authors = ["Valentine Wallace <[email protected]>"]
55
license = "MIT OR Apache-2.0"
66
repository = "http://github.com/lightningdevkit/rust-lightning"
@@ -15,11 +15,11 @@ rustdoc-args = ["--cfg", "docsrs"]
1515

1616
[dependencies]
1717
bitcoin = "0.29.0"
18-
lightning = { version = "0.0.110", path = "../lightning", features = ["std"] }
19-
lightning-rapid-gossip-sync = { version = "0.0.110", path = "../lightning-rapid-gossip-sync" }
18+
lightning = { version = "0.0.111", path = "../lightning", features = ["std"] }
19+
lightning-rapid-gossip-sync = { version = "0.0.111", path = "../lightning-rapid-gossip-sync" }
2020
futures = { version = "0.3", optional = true }
2121

2222
[dev-dependencies]
23-
lightning = { version = "0.0.110", path = "../lightning", features = ["_test_utils"] }
24-
lightning-invoice = { version = "0.18.0", path = "../lightning-invoice" }
25-
lightning-persister = { version = "0.0.110", path = "../lightning-persister" }
23+
lightning = { version = "0.0.111", path = "../lightning", features = ["_test_utils"] }
24+
lightning-invoice = { version = "0.19.0", path = "../lightning-invoice" }
25+
lightning-persister = { version = "0.0.111", path = "../lightning-persister" }

lightning-block-sync/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lightning-block-sync"
3-
version = "0.0.110"
3+
version = "0.0.111"
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.29.0"
22-
lightning = { version = "0.0.110", path = "../lightning" }
22+
lightning = { version = "0.0.111", 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

Lines changed: 3 additions & 3 deletions
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.18.0"
4+
version = "0.19.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.9.0", default-features = false }
23-
lightning = { version = "0.0.110", path = "../lightning", default-features = false }
23+
lightning = { version = "0.0.111", path = "../lightning", default-features = false }
2424
secp256k1 = { version = "0.24.0", default-features = false, features = ["recovery", "alloc"] }
2525
num-traits = { version = "0.2.8", default-features = false }
2626
bitcoin_hashes = { version = "0.11", 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.110", path = "../lightning", default-features = false, features = ["_test_utils"] }
32+
lightning = { version = "0.0.111", path = "../lightning", default-features = false, features = ["_test_utils"] }
3333
hex = "0.4"
3434
serde_json = { version = "1"}

lightning-net-tokio/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lightning-net-tokio"
3-
version = "0.0.110"
3+
version = "0.0.111"
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.29.0"
19-
lightning = { version = "0.0.110", path = "../lightning" }
19+
lightning = { version = "0.0.111", path = "../lightning" }
2020
tokio = { version = "1.0", features = [ "io-util", "macros", "rt", "sync", "net", "time" ] }
2121

2222
[dev-dependencies]

lightning-persister/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lightning-persister"
3-
version = "0.0.110"
3+
version = "0.0.111"
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.29.0"
20-
lightning = { version = "0.0.110", path = "../lightning" }
20+
lightning = { version = "0.0.111", 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.110", path = "../lightning", features = ["_test_utils"] }
27+
lightning = { version = "0.0.111", path = "../lightning", features = ["_test_utils"] }

lightning-rapid-gossip-sync/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lightning-rapid-gossip-sync"
3-
version = "0.0.110"
3+
version = "0.0.111"
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.110", path = "../lightning" }
16+
lightning = { version = "0.0.111", path = "../lightning" }
1717
bitcoin = { version = "0.29.0", default-features = false }
1818

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

lightning/Cargo.toml

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

pending_changelog/.empty_folder

Whitespace-only changes.

pending_changelog/1699.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)