Skip to content

Commit ccbf330

Browse files
authored
Merge pull request #1798 from TheBlueMatt/2022-10-112
Cut 0.0.112
2 parents a257906 + 9b77a8a commit ccbf330

File tree

9 files changed

+83
-20
lines changed

9 files changed

+83
-20
lines changed

CHANGELOG.md

+61
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,64 @@
1+
# 0.0.112 - XXX, 2022 - "XXX"
2+
3+
## API Updates
4+
* `Result<(), ChannelMonitorUpdateErr>` return values have been replaced with
5+
a `ChannelMonitorUpdateStatus` trinary enum. This better denotes that
6+
`ChannelMonitorUpdateStatus::InProgress` is not an error, but asynchronous
7+
persistence of a monitor update. Note that asynchronous persistence still
8+
has some edge cases and is not yet recommended for production (#1106).
9+
* `ChannelMonitor` persistence failure no longer automatically broadcasts the
10+
latest commitment transaction. See the
11+
`ChannelMonitorUpdateStatus::PermanentFailure` docs for more info (#1106).
12+
* `*Features::known` has been replaced with individual
13+
`*MessageHandler::provided_*_features` methods (#1707).
14+
* `OnionMessenger` now takes a `CustomOnionMessageHandler` implementation,
15+
allowing you to send and receive custom onion messages (#1748).
16+
* `ProbabilisticScorer` now tracks the historical distribution of liquidity
17+
estimates for channels. See new `historical_*` parameters in
18+
`ProbabilisticScoringParameters` for more details (#1625).
19+
* `lightning-block-sync`'s `BlockSource` trait now supports BIP 157/158
20+
filtering clients by returning only header data for some blocks (#1706).
21+
* `lightning-invoice`'s `Router` trait now accepts an `InFlightHtlcs` to
22+
ensure we do not over-use a remote channel's funds during routing (#1694).
23+
Note that this was previously backported to 0.0.111 for bindings users.
24+
* `NetworkGraph::remove_stale_channels` has been renamed
25+
`NetworkGraph::remove_stale_channels_and_tracking` as `NetworkGraph` now
26+
refuses to re-add nodes and channels that were recently removed (#1649).
27+
* The `lightning-rapid-gossip-sync` crate now supports `no-std` (#1708).
28+
* The default `ProbabilisticScoringParameters::liquidity_offset_half_life` has
29+
been increased to six hours from one (#1754).
30+
* All commitment transaction building logic for anchor outputs now assumes the
31+
no-HTLC-tx-fee variant (#1685).
32+
* A number of missing `Eq` implementations were added (#1763).
33+
34+
## Bug Fixes
35+
* `lightning-background-processor` now builds without error with the `futures`
36+
feature (#1744).
37+
* `ChannelManager::get_persistable_update_future`'s returned `Future` has been
38+
corrected to not fail to be awoken in some cases (#1758).
39+
* Asynchronously performing the initial `ChannelMonitor` persistence is now
40+
safe (#1678).
41+
* Redundantly applying rapid gossip sync updates no longer `Err`s (#1764).
42+
* Nodes which inform us via payment failures that they should no longer be
43+
used are now removed from the network graph. Some lnd nodes spuriously
44+
generate this error and may remove themselves from our graph (#1649).
45+
46+
In total, this release features 134 files changed, 6598 insertions, 4370
47+
deletions in 109 commits from 13 authors, in alphabetical order:
48+
* Duncan Dean
49+
* Elias Rohrer
50+
* Gabriel Comte
51+
* Gursharan Singh
52+
* Jeffrey Czyz
53+
* Jurvis Tan
54+
* Matt Corallo
55+
* Max Fang
56+
* Paul Miller
57+
* Valentine Wallace
58+
* Viktor Tigerström
59+
* Wilmer Paulino
60+
* acid-bit
61+
162
# 0.0.111 - Sep 12, 2022 - "Saturated with Messages"
263

364
## 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.111"
3+
version = "0.0.112"
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.111", path = "../lightning", features = ["std"] }
22-
lightning-rapid-gossip-sync = { version = "0.0.111", path = "../lightning-rapid-gossip-sync" }
21+
lightning = { version = "0.0.112", path = "../lightning", features = ["std"] }
22+
lightning-rapid-gossip-sync = { version = "0.0.112", 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.111", path = "../lightning", features = ["_test_utils"] }
27-
lightning-invoice = { version = "0.19.0", path = "../lightning-invoice" }
28-
lightning-persister = { version = "0.0.111", path = "../lightning-persister" }
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" }

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.111"
3+
version = "0.0.112"
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.111", path = "../lightning" }
22+
lightning = { version = "0.0.112", 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.19.0"
4+
version = "0.20.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.111", path = "../lightning", default-features = false }
24+
lightning = { version = "0.0.112", 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.111", path = "../lightning", default-features = false, features = ["_test_utils"] }
32+
lightning = { version = "0.0.112", 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.111"
3+
version = "0.0.112"
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.111", path = "../lightning" }
19+
lightning = { version = "0.0.112", 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.111"
3+
version = "0.0.112"
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.111", path = "../lightning" }
21+
lightning = { version = "0.0.112", 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.111", path = "../lightning", features = ["_test_utils"] }
28+
lightning = { version = "0.0.112", 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.111"
3+
version = "0.0.112"
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.111", path = "../lightning", default-features = false }
19+
lightning = { version = "0.0.112", path = "../lightning", default-features = false }
2020
bitcoin = { version = "0.29.0", default-features = false }
2121

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

lightning/src/util/events.rs

+2
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ impl_writeable_tlv_based_enum_upgradable!(HTLCDestination,
205205
}
206206
);
207207

208+
#[cfg(anchors)]
208209
/// A descriptor used to sign for a commitment transaction's anchor output.
209210
#[derive(Clone, Debug)]
210211
pub struct AnchorDescriptor {
@@ -224,6 +225,7 @@ pub struct AnchorDescriptor {
224225
pub outpoint: OutPoint,
225226
}
226227

228+
#[cfg(anchors)]
227229
/// Represents the different types of transactions, originating from LDK, to be bumped.
228230
#[derive(Clone, Debug)]
229231
pub enum BumpTransactionEvent {

0 commit comments

Comments
 (0)