From: Matt Corallo Date: Mon, 21 Nov 2022 01:22:51 +0000 (+0000) Subject: Free the holding cells during background timer ticks X-Git-Tag: v0.0.113~11^2~2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=153137804049ca92e869353dd13c2ae219ad7163;p=rust-lightning Free the holding cells during background timer ticks We currently free the channel holding cells in `get_and_clear_pending_msg_events`, blocking outbound messages while we do so. This is fine, but may block the message pipeline longer than we need to. In the next commit we'll push timer-originating channel fee updates out through the holding cell pipeline, leaning more on that freeing in the future. Thus, to avoid a regression in message time, here we clear the holding cell after processing all timer events. This also avoids needing to change tests in the next commit. --- diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs index fdd0bb202..d01ff8b19 100644 --- a/lightning/src/ln/channelmanager.rs +++ b/lightning/src/ln/channelmanager.rs @@ -3817,6 +3817,13 @@ impl ChannelManager