rust-lightning/lightning/src/ln
Matt Corallo 9dfe42cf86 Store + process pending ChannelMonitorUpdates in Channel
The previous commits set up the ability for us to hold
`ChannelMonitorUpdate`s which are pending until we're ready to pass
them to users and have them be applied. However, if the
`ChannelManager` is persisted while we're waiting to give the user
a `ChannelMonitorUpdate` we'll be confused on restart - seeing our
latest `ChannelMonitor` state as stale compared to our
`ChannelManager` - a critical error.

Luckily the solution is trivial, we simply need to store the
pending `ChannelMonitorUpdate` state and load it with the
`ChannelManager` data, allowing stale monitors on load as long as
we have the missing pending updates between where we are and the
latest `ChannelMonitor` state.
2023-05-02 17:59:22 +00:00
..
chan_utils.rs Generate local signatures with additional randomness 2023-04-20 12:14:21 -07:00
chanmon_update_fail_tests.rs Allow holding ChannelMonitorUpdates until later, completing one 2023-05-02 17:59:22 +00:00
channel.rs Store + process pending ChannelMonitorUpdates in Channel 2023-05-02 17:59:22 +00:00
channelmanager.rs Store + process pending ChannelMonitorUpdates in Channel 2023-05-02 17:59:22 +00:00
features.rs Unset the optional bit for a feature when setting the required bit 2023-04-19 02:57:19 +00:00
functional_test_utils.rs Merge pull request #2220 from TheBlueMatt/2023-04-dont-ban-cln 2023-04-24 21:15:08 +00:00
functional_tests.rs Allow holding ChannelMonitorUpdates until later, completing one 2023-05-02 17:59:22 +00:00
inbound_payment.rs Stateless verification of InvoiceRequest 2023-04-19 21:30:40 -05:00
mod.rs Replacing (C-not exported) in the docs 2023-03-22 14:30:36 +03:00
monitor_tests.rs Fix unused Secp256k1 context in monitor_tests 2023-04-24 17:58:06 +00:00
msgs.rs Merge pull request #2127 from TheBlueMatt/2023-03-payment-metadata 2023-04-19 17:17:49 +00:00
onion_route_tests.rs Replace Vec<RouteHop> with new Path struct 2023-04-21 11:48:27 -04:00
onion_utils.rs Merge pull request #2220 from TheBlueMatt/2023-04-dont-ban-cln 2023-04-24 21:15:08 +00:00
outbound_payment.rs Track an EventCompletionAction for after an Event is processed 2023-05-02 17:59:22 +00:00
payment_tests.rs Merge pull request #2146 from valentinewallace/2023-03-blinded-pathfinding-groundwork 2023-04-24 16:46:15 +00:00
peer_channel_encryptor.rs Use NodeSigner::ecdh to compute SharedSecrets 2023-01-18 17:23:23 -08:00
peer_handler.rs Clean up handshake timeout disconnection log message 2023-04-21 17:18:04 +00:00
priv_short_conf_tests.rs Replace Vec<RouteHop> with new Path struct 2023-04-21 11:48:27 -04:00
reload_tests.rs Merge pull request #2146 from valentinewallace/2023-03-blinded-pathfinding-groundwork 2023-04-24 16:46:15 +00:00
reorg_tests.rs Fix off-by-one finalized transaction locktime 2023-04-22 11:16:32 -07:00
script.rs Use UserConfig to determine advertised InitFeatures by ChannelManager 2023-01-13 23:54:51 -08:00
shutdown_tests.rs Replace PaymentSecret with RecipientOnionFields in the pub API 2023-04-05 16:28:14 +00:00
wire.rs Docs improvements 2023-03-21 14:11:13 +00:00