Skip to content

Commit aacb7fb

Browse files
authored
Merge pull request #1044 from TheBlueMatt/0.0.100
Cut 0.0.100
2 parents 6f16453 + 11f7879 commit aacb7fb

File tree

7 files changed

+101
-22
lines changed

7 files changed

+101
-22
lines changed

CHANGELOG.md

+86-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,94 @@
1-
# 0.0.100 - WIP
1+
# 0.0.100 - 2021-08-17
2+
3+
## API Updates
4+
* The `lightning` crate can now be built in no_std mode, making it easy to
5+
target embedded hardware for rust users. Note that mutexes are replaced with
6+
no-ops for such builds (#1008, #1028).
7+
* LDK now supports sending and receiving "keysend" payments. This includes
8+
modifications to `lightning::util::events::Event::PaymentReceived` to
9+
indicate the type of payment (#967).
10+
* A new variant, `lightning::util::events::Event::PaymentForwarded` has been
11+
added which indicates a forwarded payment has been successfully claimed and
12+
we've received a forwarding fee (#1004).
13+
* `lightning::chain::keysinterface::KeysInterface::get_shutdown_pubkey` has
14+
been renamed to `get_shutdown_scriptpubkey`, returns a script, and is now
15+
called on channel open only if
16+
`lightning::util::config::ChannelConfig::commit_upfront_shutdown_pubkey` is
17+
set (#1019).
18+
* Closing-signed negotiation is now more configurable, with an explicit
19+
`lightning::util::config::ChannelConfig::force_close_avoidance_max_fee_satoshis`
20+
field allowing you to select the maximum amount you are willing to pay to
21+
avoid a force-closure. Further, we are now less restrictive on the fee
22+
placed on the closing transaction when we are not the party paying it. To
23+
control the feerate paid on a channel at close-time, use
24+
`ChannelManager::close_channel_with_target_feerate` instead of
25+
`close_channel` (#1011).
26+
* `lightning_background_processor::BackgroundProcessor` now stops the
27+
background thread when dropped (#1007). It is marked `#[must_use]` so that
28+
Rust users will receive a compile-time warning when it is immediately
29+
dropped after construction (#1029).
30+
* Total potential funds burn on force-close due to dust outputs is now limited
31+
to `lightning::util::config::ChannelConfig::max_dust_htlc_exposure_msat` per
32+
channel (#1009).
33+
* The interval on which
34+
`lightning::ln::peer_handler::PeerManager::timer_tick_occurred` should be
35+
called has been reduced to once every five seconds (#1035) and
36+
`lightning::ln::channelmanager::ChannelManager::timer_tick_occurred` should
37+
now be called on startup in addition to once per minute (#985).
38+
* The rust-bitcoin and bech32 dependencies have been updated to their
39+
respective latest versions (0.27 and 0.8, #1012).
40+
41+
## Bug Fixes
42+
* Fix panic when reading invoices generated by some versions of c-lightning
43+
(#1002 and #1003).
44+
* Fix panic when attempting to validate a signed message of incorrect length
45+
(#1010).
46+
* Do not ignore the route hints in invoices when the invoice is over 250k
47+
sats (#986).
48+
* Fees are automatically updated on outbound channels to ensure commitment
49+
transactions are always broadcastable (#985).
50+
* Fixes a rare case where a `lightning::util::events::Event::SpendableOutputs`
51+
event is not generated after a counterparty commitment transaction is
52+
confirmed in a reorg when a conflicting local commitment transaction is
53+
removed in the same reorg (#1022).
54+
* Fixes a remotely-triggerable force-closure of an origin channel after an
55+
HTLC was forwarded over a next-hop channel and the next-hop channel was
56+
force-closed by our counterparty (#1025).
57+
* Fixes a rare force-closure case when sending a payment as a channel fundee
58+
when overdrawing our remaining balance. Instead the send will fail (#998).
59+
* Fixes a rare force-closure case when a payment was claimed prior to a
60+
peer disconnection or restart, and later failed (#977).
261

362
## Serialization Compatibility
63+
* Pending inbound keysend payments which have neither been failed nor claimed
64+
when serialized will result in a `ChannelManager` which is not readable on
65+
pre-0.0.100 clients (#967).
66+
* Because
67+
`lightning::chain::keysinterface::KeysInterface::get_shutdown_scriptpubkey`
68+
has been updated to return a script instead of only a `PublicKey`,
69+
`ChannelManager`s constructed with custom `KeysInterface` implementations on
70+
0.0.100 and later versions will not be readable on previous versions.
71+
`ChannelManager`s created with 0.0.99 and prior versions will remain readable
72+
even after the a serialization roundtrip on 0.0.100, as long as no new
73+
channels are opened. Further, users using a
74+
`lightning::chain::keysinterface::KeysManager` as their `KeysInterface` will
75+
have `ChannelManager`s which are readable on prior versions as well (#1019).
76+
* `ChannelMonitorUpdate`s created by 0.0.100 and later for channels when
77+
`lightning::util::config::ChannelConfig::commit_upfront_shutdown_pubkey` is
78+
not set may not be readable by versions prior to 0.0.100 (#1019).
479
* HTLCs which were in the process of being claimed on-chain when a pre-0.0.100
580
`ChannelMonitor` was serialized may generate `PaymentForwarded` events with
681
spurious `fee_earned_msat` values. This only applies to payments which were
7-
unresolved at the time of the upgrade.
8-
* 0.0.100 clients with pending PaymentForwarded events at serialization-time
9-
will generate serialized `ChannelManager` objects which 0.0.99 and earlier
10-
clients cannot read. The likelihood of this can be reduced by ensuring you
11-
process all pending events immediately before serialization (as is done by
12-
the `lightning-background-processor` crate).
82+
unresolved at the time of the upgrade (#1004).
83+
* 0.0.100 clients with pending `Event::PaymentForwarded` events at
84+
serialization-time will generate serialized `ChannelManager` objects which
85+
0.0.99 and earlier clients cannot read. The likelihood of this can be reduced
86+
by ensuring you process all pending events immediately before serialization
87+
(as is done by the `lightning-background-processor` crate, #1004).
88+
89+
90+
In total, this release features 59 files changed, 5861 insertions, and 2082
91+
deletions in 95 commits from 6 authors.
1392

1493

1594
# 0.0.99 - 2021-07-09
+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lightning-background-processor"
3-
version = "0.0.99"
3+
version = "0.0.100"
44
authors = ["Valentine Wallace <[email protected]>"]
55
license = "MIT OR Apache-2.0"
66
repository = "http://github.com/rust-bitcoin/rust-lightning"
@@ -11,9 +11,9 @@ edition = "2018"
1111

1212
[dependencies]
1313
bitcoin = "0.27"
14-
lightning = { version = "0.0.99", path = "../lightning", features = ["allow_wallclock_use"] }
15-
lightning-persister = { version = "0.0.99", path = "../lightning-persister" }
14+
lightning = { version = "0.0.100", path = "../lightning", features = ["allow_wallclock_use"] }
15+
lightning-persister = { version = "0.0.100", path = "../lightning-persister" }
1616

1717
[dev-dependencies]
18-
lightning = { version = "0.0.99", path = "../lightning", features = ["_test_utils"] }
18+
lightning = { version = "0.0.100", path = "../lightning", features = ["_test_utils"] }
1919

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.99"
3+
version = "0.0.100"
44
authors = ["Jeffrey Czyz", "Matt Corallo"]
55
license = "MIT OR Apache-2.0"
66
repository = "http://github.com/rust-bitcoin/rust-lightning"
@@ -15,7 +15,7 @@ rpc-client = [ "serde", "serde_json", "chunked_transfer" ]
1515

1616
[dependencies]
1717
bitcoin = "0.27"
18-
lightning = { version = "0.0.99", path = "../lightning" }
18+
lightning = { version = "0.0.100", path = "../lightning" }
1919
tokio = { version = "1.0", features = [ "io-util", "net", "time" ], optional = true }
2020
serde = { version = "1.0", features = ["derive"], optional = true }
2121
serde_json = { version = "1.0", 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.7.0"
4+
version = "0.8.0"
55
authors = ["Sebastian Geisler <[email protected]>"]
66
documentation = "https://docs.rs/lightning-invoice/"
77
license = "MIT OR Apache-2.0"
@@ -10,10 +10,10 @@ readme = "README.md"
1010

1111
[dependencies]
1212
bech32 = "0.8"
13-
lightning = { version = "0.0.99", path = "../lightning" }
13+
lightning = { version = "0.0.100", path = "../lightning" }
1414
secp256k1 = { version = "0.20", features = ["recovery"] }
1515
num-traits = "0.2.8"
1616
bitcoin_hashes = "0.10"
1717

1818
[dev-dependencies]
19-
lightning = { version = "0.0.99", path = "../lightning", features = ["_test_utils"] }
19+
lightning = { version = "0.0.100", path = "../lightning", features = ["_test_utils"] }

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.99"
3+
version = "0.0.100"
44
authors = ["Matt Corallo"]
55
license = "MIT OR Apache-2.0"
66
repository = "https://github.com/rust-bitcoin/rust-lightning/"
@@ -12,7 +12,7 @@ edition = "2018"
1212

1313
[dependencies]
1414
bitcoin = "0.27"
15-
lightning = { version = "0.0.99", path = "../lightning" }
15+
lightning = { version = "0.0.100", path = "../lightning" }
1616
tokio = { version = "1.0", features = [ "io-util", "macros", "rt", "sync", "net", "time" ] }
1717

1818
[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.99"
3+
version = "0.0.100"
44
authors = ["Valentine Wallace", "Matt Corallo"]
55
license = "MIT OR Apache-2.0"
66
repository = "https://github.com/rust-bitcoin/rust-lightning/"
@@ -13,11 +13,11 @@ unstable = ["lightning/unstable"]
1313

1414
[dependencies]
1515
bitcoin = "0.27"
16-
lightning = { version = "0.0.99", path = "../lightning" }
16+
lightning = { version = "0.0.100", path = "../lightning" }
1717
libc = "0.2"
1818

1919
[target.'cfg(windows)'.dependencies]
2020
winapi = { version = "0.3", features = ["winbase"] }
2121

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

0 commit comments

Comments
 (0)