Skip to content

Commit 946ca58

Browse files
committed
Add documentation for all PRs slated to land for 0.0.99
1 parent 12253e5 commit 946ca58

File tree

1 file changed

+58
-1
lines changed

1 file changed

+58
-1
lines changed

CHANGELOG.md

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,69 @@
11
# 0.0.99 - WIP
22

3+
## API Updates
4+
5+
* `lightning_block_sync::poll::Validate` is now public, allowing you to
6+
implement the `lightning_block_sync::poll::Poll` trait yourself (#956).
7+
* `lightning::ln::peer_handler::PeerManager` no longer requires that no calls
8+
are made to referencing the same `SocketDescriptor` after
9+
`disconnect_socket` returns. This makes the API significantly less
10+
deadlock-prone and simplifies `SocketDescriptor` implementations
11+
significantly. The relevant changes have been made to `lightning_net_tokio`
12+
and `PeerManager` documentation has been substantially rewritten (#957).
13+
* `lightning::util::message_signing`'s `sign` and `verify` methods now take
14+
secret and public keys by reference instead of value (#974).
15+
* Substantially more information is now exposed about channels in
16+
`ChannelDetails`. See documentation for more info (#984 and #988).
17+
* Feerates charged when forwarding payments over channels is now set in
18+
`ChannelConfig::fee_base_msat` when the channel is opened. For existing
19+
channels, the value is set to the value provided in
20+
`ChannelManagerReadArgs::default_config::channel_options` the first time the
21+
`ChannelManager` is loaded in 0.0.99 (#975).
22+
* We now reject HTLCs which are received to be forwarded out over private
23+
channels unless `UserConfig::accept_forwards_to_priv_channels` is set. Note
24+
that `UserConfig` is never serialized and must be provided via
25+
`ChannelManagerReadArgs::default_config` at each start (#975).
26+
27+
## Bug Fixes
28+
29+
* We now forward gossip messages to peers instead of only relaying
30+
locally-generated gossip or sending gossip messages during initial sync
31+
(#948).
32+
* Correctly send `channel_update` messages to direct peers on private channels
33+
(#949). Without this, a private node connected to an LDK node over a private
34+
channel cannot receive funds as it does not know which fees the LDK node
35+
will charge.
36+
* `lightning::ln::channelmanager::ChannelManager` no longer expects to be
37+
persisted spuriously after we receive a `channel_update` message about any
38+
channel in the routing gossip (#972).
39+
* Asynchronous `ChannelMonitor` updates (using the
40+
`ChannelMonitorUpdateErr::TemporaryFailure` return variant) no longer cause
41+
spurious HTLC forwarding failures (#954).
42+
* Transaction provided via `ChannelMonitor::transactions_confirmed`
43+
after `ChannelMonitor::best_block_updated` was called for a much later
44+
block now trigger all relevant actions as of the later block. Previously
45+
some transaction broadcasts or other responses required an additional
46+
block be provided via `ChannelMonitor::best_block_updated` (#970).
47+
* We no longer panic in rare cases when an invoice contained last-hop route
48+
hints which were unusable (#958).
49+
50+
## Node Compatibility
51+
52+
* We now accept spurious `funding_locked` messages sent prior to
53+
`channel_reestablish` messages after reconnect. This is a
54+
[known, long-standing bug in lnd] (https://github.com/lightningnetwork/lnd/issues/4006)
55+
(#966).
56+
* We now set the `first_blocknum` and `number_of_blocks` fields in
57+
`reply_channel_range` messages to values which c-lightning versions prior to
58+
0.10 accepted. This avoids spurious force-closes from such nodes (#961).
59+
360
## Serialization Compatibility
461

562
* Due to a bug discovered in 0.0.98, if a `ChannelManager` is serialized on
663
version 0.0.98 while an `Event::PaymentSent` is pending processing, the
764
`ChannelManager` will fail to deserialize both on version 0.0.98 and later
865
versions. If you have such a `ChannelManager` available, a simple patch will
9-
allow it to deserialize, please file an issue if you need assistance.
66+
allow it to deserialize, please file an issue if you need assistance (#973).
1067

1168
# 0.0.98 - 2021-06-11
1269

0 commit comments

Comments
 (0)