]> git.bitcoin.ninja Git - rust-lightning/commit
Introduce message_received in ChannelMessageHandler
authorshaavan <shaavan.github@gmail.com>
Mon, 10 Jun 2024 11:46:08 +0000 (17:16 +0530)
committershaavan <shaavan.github@gmail.com>
Thu, 12 Sep 2024 13:22:48 +0000 (18:52 +0530)
commit5cccee565f622604fdd08e106ffff4dccf1a77b5
tree8d95041c809aaf7c74dce15c142b1fef2a7d6f63
parent1881f352350155a262b96032fa7c01a7f1041654
Introduce message_received in ChannelMessageHandler

- Introduce the `message_received` function to manage the
  behavior when a message is received from any peer.
- This function is used within `ChannelManager` to retry `InvoiceRequest`
  messages if we haven't received the corresponding invoice yet.
- This change makes the offer communication robust against sudden
  connection drops where the initial attempt to send the message
  might have failed.
lightning-net-tokio/src/lib.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/msgs.rs
lightning/src/ln/peer_handler.rs
lightning/src/util/test_utils.rs