]> git.bitcoin.ninja Git - rust-lightning/commit
Move `ChannelManager`-read preimage relay to after struct build
authorMatt Corallo <git@bluematt.me>
Mon, 30 Sep 2024 19:42:51 +0000 (19:42 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 24 Oct 2024 17:44:33 +0000 (17:44 +0000)
commita26033f0cb879c7514953c11dfb9547e982e633e
treeecd6c13663b6efc204dd88bd36b25582d9a8e4b5
parent7790e30880f955d0e378ffd4e4062a7b4747c361
Move `ChannelManager`-read preimage relay to after struct build

In a coming commit we'll use the existing `ChannelManager` claim
flow to claim HTLCs which we found partially claimed on startup,
necessitating having a full `ChannelManager` when we go to do so.

Here we move the re-claim logic down in the `ChannelManager`-read
logic so that we have that.
lightning/src/ln/channelmanager.rs