Skip to content

Commit f6a9382

Browse files
authored
Merge pull request #1917 from TheBlueMatt/2022-12-0.0.113
Cut 0.0.113
2 parents 40b78ea + f96ac1d commit f6a9382

File tree

14 files changed

+108
-62
lines changed

14 files changed

+108
-62
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109
RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always --features rpc-client,rest-client
110110
RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always --features rpc-client,rest-client,tokio
111111
- name: Test backtrace-debug builds on Rust ${{ matrix.toolchain }}
112-
if: "matrix.build-no-std"
112+
if: "matrix.toolchain == 'stable'"
113113
run: |
114114
cd lightning && cargo test --verbose --color always --features backtrace
115115
- name: Test on Rust ${{ matrix.toolchain }} with net-tokio

CHANGELOG.md

+87
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,90 @@
1+
# 0.0.113 - Dec 15, 2022 - "Big Movement Intercepted"
2+
3+
## API Updates
4+
* `ChannelManager::send_payment` now takes an explicit `PaymentId` which is a
5+
loose idempotency token. See `send_payment` docs for more (#1761, #1826).
6+
* HTLCs bound for SCIDs from `ChannelManager::get_intercept_scid` are now
7+
intercepted and can be forwarded manually over any channel (#1835, #1893).
8+
* `Confirm::get_relevant_txids` now returns a `BlockHash`, expanding the set
9+
of cases where `transaction_unconfirmed` must be called, see docs (#1796).
10+
* Pending outbound payments are no longer automatically timed-out a few blocks
11+
after failure. Thus, in order to avoid leaking memory, you MUST call
12+
`ChannelManager::abandon_payment` when you no longer wish to retry (#1761).
13+
* `ChannelManager::abandon_payment` docs were updated to note that the payment
14+
may return to pending after a restart if no persistence occurs (#1907).
15+
* `Event::PaymentReceived` has been renamed `Event::PaymentClaimable` (#1891).
16+
* `Event` handling is now optionally async for Rust users (#1787).
17+
* `user_channel_id` is now a `u128` and random for inbound channels (#1790).
18+
* A new `ChannelReady` event is generated whenever a channel becomes ready to
19+
be used, i.e., after both sides sent the `channel_ready` message (#1743).
20+
* `NetworkGraph` now prunes channels where either node is offline for 2 weeks
21+
and refuses to accept re-announcements of pruned channels (#1735).
22+
* Onion messages are now read in `CustomOnionMessageHandler` rather than via
23+
`MaybeReadableArgs` (#1809).
24+
* Added a new util to generate an invoice with a custom hash (#1894) -
25+
`create_invoice_from_channelmanager_and_duration_since_epoch_with_payment_hash`
26+
* `Sign`ers are now by default re-derived using `KeysInterface`'s new
27+
`derive_channel_signer` rather than `read_chan_signer` (#1867).
28+
* `Confirm::transactions_confirmed` is now idempotent (#1861).
29+
* `ChannelManager::compute_inflight_htlcs` has been added to fetch in-flight
30+
HTLCs for scoring. Note that `InvoicePayer` does this for you (#1830).
31+
* Added `PaymentClaimable::via_channel_id` (#1856).
32+
* Added the `node_id` (phantom or regular) to payment events (#1766).
33+
* Added the funding transaction `confirmations` to `ChannelDetails` (#1856).
34+
* `BlindedRoute` has been renamed `BlindedPath` (#1918).
35+
* Support for the BOLT 4 "legacy" onion format has been removed, in line with
36+
its removal in the spec and vanishingly rare use (#1413).
37+
* `ChainMonitor::list_pending_monitor_updates` was added (#1834).
38+
* Signing for non-zero-fee anchor commitments is supported again (#1828).
39+
* Several helpers for transaction matching and generation are now pub (#1839).
40+
41+
## Bug Fixes
42+
* Fixed a rare race where a crash may result in a pending HTLC not being
43+
failed backwards, leading to a force-closure by our counterparty (#1857).
44+
* Avoid incorrectly assigning a lower-bound on channel liquidity when routing
45+
fails due to a closed channel earlier in the path (#1817).
46+
* If a counterparty increases the channel fee, but not enough per our own fee
47+
estimator, we no longer force-close the channel (#1852).
48+
* Several bugs in the `lightning-background-processor` `future` feature were
49+
fixed, including requirements doc corrections (#1843, #1845, #1851).
50+
* Some failure messages sent back when failing an HTLC were corrected (#1895).
51+
* `rapid-gossip-sync` no longer errors if an update is applied duplicatively
52+
or in rare cases when the graph is updated from payment failures (#1833).
53+
* Sending onion messages to a blinded path in which we're the introduction
54+
node no longer fails (#1791).
55+
56+
## Backwards Compatibility
57+
* No `ChannelReady` events will be generated for previously existing channels,
58+
including those which become ready after upgrading to 0.0.113 (#1743).
59+
* Once `UserConfig::accept_intercept_htlcs` is set, downgrades to LDK versions
60+
prior to 0.0.113 are not supported (#1835).
61+
* Existing payments may see a `PaymentClaimable::user_channel_id` of 0 (#1856)
62+
* When downgrading to a version of LDK prior to 0.0.113 when there are
63+
resolved payments waiting for a small timeout, the payments may not be
64+
removed, preventing payments with the same `PaymentId` (#1761).
65+
66+
In total, this release features 76 files changed, 11639 insertions, 6067
67+
deletions in 210 commits from 18 authors, in alphabetical order:
68+
* Antoine Riard
69+
* Arik Sosman
70+
* Devrandom
71+
* Duncan Dean
72+
* Elias Rohrer
73+
* Gleb Naumenko
74+
* Jeffrey Czyz
75+
* John Cantrell
76+
* Matt Corallo
77+
* Tee8z
78+
* Tobin C. Harding
79+
* Tristan F
80+
* Valentine Wallace
81+
* Viktor Tigerström
82+
* Wilmer Paulino
83+
* benthecarman
84+
* jurvis
85+
* ssbright
86+
87+
188
# 0.0.112 - Oct 25, 2022 - "History Matters"
289

390
## 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.112"
3+
version = "0.0.113"
44
authors = ["Valentine Wallace <[email protected]>"]
55
license = "MIT OR Apache-2.0"
66
repository = "http://github.com/lightningdevkit/rust-lightning"
@@ -18,11 +18,11 @@ futures = [ "futures-util" ]
1818

1919
[dependencies]
2020
bitcoin = "0.29.0"
21-
lightning = { version = "0.0.112", path = "../lightning", features = ["std"] }
22-
lightning-rapid-gossip-sync = { version = "0.0.112", path = "../lightning-rapid-gossip-sync" }
21+
lightning = { version = "0.0.113", path = "../lightning", features = ["std"] }
22+
lightning-rapid-gossip-sync = { version = "0.0.113", path = "../lightning-rapid-gossip-sync" }
2323
futures-util = { version = "0.3", default-features = false, features = ["async-await-macro"], optional = true }
2424

2525
[dev-dependencies]
26-
lightning = { version = "0.0.112", path = "../lightning", features = ["_test_utils"] }
27-
lightning-invoice = { version = "0.20.0", path = "../lightning-invoice" }
28-
lightning-persister = { version = "0.0.112", path = "../lightning-persister" }
26+
lightning = { version = "0.0.113", path = "../lightning", features = ["_test_utils"] }
27+
lightning-invoice = { version = "0.21.0", path = "../lightning-invoice" }
28+
lightning-persister = { version = "0.0.113", 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.112"
3+
version = "0.0.113"
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.112", path = "../lightning" }
22+
lightning = { version = "0.0.113", path = "../lightning" }
2323
futures-util = { 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.20.0"
4+
version = "0.21.0"
55
authors = ["Sebastian Geisler <[email protected]>"]
66
documentation = "https://docs.rs/lightning-invoice/"
77
license = "MIT OR Apache-2.0"
@@ -21,14 +21,14 @@ 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.112", path = "../lightning", default-features = false }
24+
lightning = { version = "0.0.113", 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 }
2828
hashbrown = { version = "0.8", optional = true }
2929
serde = { version = "1.0.118", optional = true }
3030

3131
[dev-dependencies]
32-
lightning = { version = "0.0.112", path = "../lightning", default-features = false, features = ["_test_utils"] }
32+
lightning = { version = "0.0.113", 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.112"
3+
version = "0.0.113"
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.112", path = "../lightning" }
19+
lightning = { version = "0.0.113", 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.112"
3+
version = "0.0.113"
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.112", path = "../lightning" }
21+
lightning = { version = "0.0.113", 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.112", path = "../lightning", features = ["_test_utils"] }
28+
lightning = { version = "0.0.113", 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.112"
3+
version = "0.0.113"
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.112", path = "../lightning", default-features = false }
19+
lightning = { version = "0.0.113", path = "../lightning", default-features = false }
2020
bitcoin = { version = "0.29.0", default-features = false }
2121

2222
[dev-dependencies]
23-
lightning = { version = "0.0.112", path = "../lightning", features = ["_test_utils"] }
23+
lightning = { version = "0.0.113", 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.112"
3+
version = "0.0.113"
44
authors = ["Matt Corallo"]
55
license = "MIT OR Apache-2.0"
66
repository = "https://github.com/lightningdevkit/rust-lightning/"

pending_changelog/1743.txt

-7
This file was deleted.

pending_changelog/1856.txt

-9
This file was deleted.

pending_changelog/elias-event-renaming.txt

-5
This file was deleted.

pending_changelog/matt-abandon-restart.txt

-4
This file was deleted.

pending_changelog/matt-idempotent-payments.txt

-16
This file was deleted.

0 commit comments

Comments
 (0)