rust-lightning/lightning-background-processor
Matt Corallo 8f89371bae Update ChannelUpdate::timestamp when channels are dis-/en-abled
We update the `Channel::update_time_counter` field (which is copied
into `ChannelUpdate::timestamp`) only when the channel is
initialized or closes, and when a new block is connected. However,
if a peer disconnects or reconnects, we may wish to generate
`ChannelUpdate` updates in between new blocks. In such a case, we
need to make sure the `timestamp` field is newer than any previous
updates' `timestamp` fields, which we do here by simply
incrementing it when the channel status is changed.

As a side effect of this we have to update
`test_background_processor` to ensure it eventually succeeds even
if the serialization of the `ChannelManager` changes after the test
begins.
2021-11-23 22:17:18 +00:00
..
src Update ChannelUpdate::timestamp when channels are dis-/en-abled 2021-11-23 22:17:18 +00:00
Cargo.toml Bump crate versions to 0.0.103/invoice 0.11 2021-11-03 02:20:51 +00:00