Skip to content

Commit d2242f6

Browse files
authored
Merge pull request #2678 from TheBlueMatt/2023-10-0.0.118
Cut 0.0.118
2 parents d0795d8 + b664875 commit d2242f6

File tree

12 files changed

+118
-34
lines changed

12 files changed

+118
-34
lines changed

CHANGELOG.md

+91
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,94 @@
1+
# 0.0.118 - Oct 23, 2023 - "Just the Twelve Sinks"
2+
3+
## API Updates
4+
* BOLT12 sending and receiving is now supported as an alpha feature. You may
5+
run into unexpected issues and will need to have a direct connection with
6+
the offer's blinded path introduction points as messages are not yet routed.
7+
We are seeking feedback from early testers (#2578, #2039).
8+
* `ConfirmationTarget` has been rewritten to provide information about the
9+
specific use LDK needs the feerate estimate for, rather than the generic
10+
low-, medium-, and high-priority estimates. This allows LDK users to more
11+
accurately target their feerate estimates (#2660). For those wishing to
12+
retain their existing behavior, see the table below for conversion.
13+
* `ChainHash` is now used in place of `BlockHash` where it represents the
14+
genesis block (#2662).
15+
* `lightning-invoice` payment utilities now take a `Deref` to
16+
`AChannelManager` (#2652).
17+
* `peel_onion` is provided to statelessly decode an `OnionMessage` (#2599).
18+
* `ToSocketAddrs` + `Display` are now impl'd for `SocketAddress` (#2636, #2670)
19+
* `Display` is now implemented for `OutPoint` (#2649).
20+
* `Features::from_be_bytes` is now provided (#2640).
21+
22+
For those moving to the new `ConfirmationTarget`, the new variants in terms of
23+
the old mempool/low/medium/high priorities are as follows:
24+
* `OnChainSweep` = `HighPriority`
25+
* `MaxAllowedNonAnchorChannelRemoteFee` = `max(25 * 250, HighPriority * 10)`
26+
* `MinAllowedAnchorChannelRemoteFee` = `MempoolMinimum`
27+
* `MinAllowedNonAnchorChannelRemoteFee` = `Background - 250`
28+
* `AnchorChannelFee` = `Background`
29+
* `NonAnchorChannelFee` = `Normal`
30+
* `ChannelCloseMinimum` = `Background`
31+
32+
## Bug Fixes
33+
* Calling `ChannelManager::close_channel[_with_feerate_and_script]` on a
34+
channel which did not exist would immediately hang holding several key
35+
`ChannelManager`-internal locks (#2657).
36+
* Channel information updates received from a failing HTLC are no longer
37+
applied to our `NetworkGraph`. This prevents a node which we attempted to
38+
route a payment through from being able to learn the sender of the payment.
39+
In some rare cases, this may result in marginally reduced payment success
40+
rates (#2666).
41+
* Anchor outputs are now properly considered when calculating the amount
42+
available to send in HTLCs. This can prevent force-closes in anchor channels
43+
when sending payments which overflow the available balance (#2674).
44+
* A peer that sends an `update_fulfill_htlc` message for a forwarded HTLC,
45+
then reconnects prior to sending a `commitment_signed` (thus retransmitting
46+
their `update_fulfill_htlc`) may result in the channel stalling and being
47+
unable to make progress (#2661).
48+
* In exceedingly rare circumstances, messages intended to be sent to a peer
49+
prior to reconnection can be sent after reconnection. This could result in
50+
undefined channel state and force-closes (#2663).
51+
52+
## Backwards Compatibility
53+
54+
* Creating a blinded path to receive a payment then downgrading to LDK prior to
55+
0.0.117 may result in failure to receive the payment (#2413).
56+
* Calling `ChannelManager::pay_for_offer` or
57+
`ChannelManager::create_refund_builder` may prevent downgrading to LDK prior
58+
to 0.0.118 until the payment times out and has been removed (#2039).
59+
60+
## Node Compatibility
61+
* LDK now sends a bogus `channel_reestablish` message to peers when they ask to
62+
resume an unknown channel. This should cause LND nodes to force-close and
63+
broadcast the latest channel state to the chain. In order to trigger this
64+
when we wish to force-close a channel, LDK now disconnects immediately after
65+
sending a channel-closing `error` message. This should result in cooperative
66+
peers also working to confirm the latest commitment transaction when we wish
67+
to force-close (#2658).
68+
69+
## Security
70+
0.0.118 expands mitigations against transaction cycling attacks to non-anchor
71+
channels, though note that no mitigations which exist today are considered robust
72+
to prevent the class of attacks.
73+
* In order to mitigate against transaction cycling attacks, non-anchor HTLC
74+
transactions are now properly re-signed before broadcasting (#2667).
75+
76+
In total, this release features 61 files changed, 3470 insertions, 1503
77+
deletions in 85 commits from 12 authors, in alphabetical order:
78+
* Antonio Yang
79+
* Elias Rohrer
80+
* Evan Feenstra
81+
* Fedeparma74
82+
* Gursharan Singh
83+
* Jeffrey Czyz
84+
* Matt Corallo
85+
* Sergi Delgado Segura
86+
* Vladimir Fomene
87+
* Wilmer Paulino
88+
* benthecarman
89+
* slanesuke
90+
91+
192
# 0.0.117 - Oct 3, 2023 - "Everything but the Twelve Sinks"
293

394
## 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.117"
3+
version = "0.0.118"
44
authors = ["Valentine Wallace <[email protected]>"]
55
license = "MIT OR Apache-2.0"
66
repository = "https://github.com/lightningdevkit/rust-lightning"
@@ -22,11 +22,11 @@ default = ["std"]
2222

2323
[dependencies]
2424
bitcoin = { version = "0.29.0", default-features = false }
25-
lightning = { version = "0.0.117", path = "../lightning", default-features = false }
26-
lightning-rapid-gossip-sync = { version = "0.0.117", path = "../lightning-rapid-gossip-sync", default-features = false }
25+
lightning = { version = "0.0.118", path = "../lightning", default-features = false }
26+
lightning-rapid-gossip-sync = { version = "0.0.118", path = "../lightning-rapid-gossip-sync", default-features = false }
2727

2828
[dev-dependencies]
2929
tokio = { version = "1.14", features = [ "macros", "rt", "rt-multi-thread", "sync", "time" ] }
30-
lightning = { version = "0.0.117", path = "../lightning", features = ["_test_utils"] }
31-
lightning-invoice = { version = "0.25.0", path = "../lightning-invoice" }
32-
lightning-persister = { version = "0.0.117", path = "../lightning-persister" }
30+
lightning = { version = "0.0.118", path = "../lightning", features = ["_test_utils"] }
31+
lightning-invoice = { version = "0.26.0", path = "../lightning-invoice" }
32+
lightning-persister = { version = "0.0.118", 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.117"
3+
version = "0.0.118"
44
authors = ["Jeffrey Czyz", "Matt Corallo"]
55
license = "MIT OR Apache-2.0"
66
repository = "https://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.117", path = "../lightning" }
22+
lightning = { version = "0.0.118", 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.117", path = "../lightning", features = ["_test_utils"] }
28+
lightning = { version = "0.0.118", 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.117"
3+
version = "0.0.118"
44
authors = ["Jeffrey Czyz"]
55
license = "MIT OR Apache-2.0"
66
repository = "https://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.117", path = "../lightning" }
18+
lightning = { version = "0.0.118", 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.25.0"
4+
version = "0.26.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.117", path = "../lightning", default-features = false }
24+
lightning = { version = "0.0.118", 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.117", path = "../lightning", default-features = false, features = ["_test_utils"] }
33+
lightning = { version = "0.0.118", 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.117"
3+
version = "0.0.118"
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.117", path = "../lightning" }
19+
lightning = { version = "0.0.118", path = "../lightning" }
2020
tokio = { version = "1.0", features = [ "rt", "sync", "net", "time" ] }
2121

2222
[dev-dependencies]
2323
tokio = { version = "1.14", features = [ "macros", "rt", "rt-multi-thread", "sync", "net", "time" ] }
24-
lightning = { version = "0.0.117", path = "../lightning", features = ["_test_utils"] }
24+
lightning = { version = "0.0.118", 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.117"
3+
version = "0.0.118"
44
authors = ["Valentine Wallace", "Matt Corallo"]
55
license = "MIT OR Apache-2.0"
66
repository = "https://github.com/lightningdevkit/rust-lightning"
@@ -15,7 +15,7 @@ rustdoc-args = ["--cfg", "docsrs"]
1515

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

2020
[target.'cfg(windows)'.dependencies]
2121
windows-sys = { version = "0.48.0", default-features = false, features = ["Win32_Storage_FileSystem", "Win32_Foundation"] }
@@ -24,5 +24,5 @@ windows-sys = { version = "0.48.0", default-features = false, features = ["Win32
2424
criterion = { version = "0.4", optional = true, default-features = false }
2525

2626
[dev-dependencies]
27-
lightning = { version = "0.0.117", path = "../lightning", features = ["_test_utils"] }
27+
lightning = { version = "0.0.118", path = "../lightning", features = ["_test_utils"] }
2828
bitcoin = { version = "0.29.0", default-features = false }

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.117"
3+
version = "0.0.118"
44
authors = ["Arik Sosman <[email protected]>"]
55
license = "MIT OR Apache-2.0"
66
repository = "https://github.com/lightningdevkit/rust-lightning"
@@ -15,11 +15,11 @@ no-std = ["lightning/no-std"]
1515
std = ["lightning/std"]
1616

1717
[dependencies]
18-
lightning = { version = "0.0.117", path = "../lightning", default-features = false }
18+
lightning = { version = "0.0.118", path = "../lightning", default-features = false }
1919
bitcoin = { version = "0.29.0", default-features = false }
2020

2121
[target.'cfg(ldk_bench)'.dependencies]
2222
criterion = { version = "0.4", optional = true, default-features = false }
2323

2424
[dev-dependencies]
25-
lightning = { version = "0.0.117", path = "../lightning", features = ["_test_utils"] }
25+
lightning = { version = "0.0.118", 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.117"
3+
version = "0.0.118"
44
authors = ["Elias Rohrer"]
55
license = "MIT OR Apache-2.0"
66
repository = "https://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.117", path = "../lightning", default-features = false }
24+
lightning = { version = "0.0.118", 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.117", path = "../lightning", features = ["std"] }
32+
lightning = { version = "0.0.118", 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.117"
3+
version = "0.0.118"
44
authors = ["Matt Corallo"]
55
license = "MIT OR Apache-2.0"
66
repository = "https://github.com/lightningdevkit/rust-lightning/"

pending_changelog/1-hop-bps.txt

-4
This file was deleted.

pending_changelog/invoice_request_failed_downgrade.txt

-3
This file was deleted.

0 commit comments

Comments
 (0)