rust-lightning/lightning
Matt Corallo 07b5355b75 Set counterparty_node_id on ChannelMonitors as they're updated
Historically, `ChannelMonitor`s had idea who their counterparty
was. This was fine, until `ChannelManager` started indexing by
peer, at which point it needed to know the counterparty when it saw
a `ChannelMonitorUpdate` complete. To address this, a "temporary"
map from channel ID to peer was added, but no upgrade path was
created for existing `ChannelMonitor`s to not rely on this map.

This commit adds such an upgrade path, setting the
`counterparty_node_id` on all `ChannelMonitor`s as they're updated,
allowing us to eventually break backwards compatibility and remove
`ChannelManager::outpoint_to_peer`.
2023-12-12 02:08:36 +00:00
..
src Set counterparty_node_id on ChannelMonitors as they're updated 2023-12-12 02:08:36 +00:00
Cargo.toml Bump MSRV to rustc 1.63.0 and edition to 2021 2023-12-08 14:03:45 +01:00